Moodle  2.2.1
http://www.collinsharper.com
popup_action Class Reference
Inheritance diagram for popup_action:
Collaboration diagram for popup_action:

Public Member Functions

 __construct ($event, $url, $name='popup', $params=array())
 get_js_options ()

Data Fields

 $jsfunction = 'openpopup'
 $params

Detailed Description

Component action for a popup window.

Since:
Moodle 2.0

Definition at line 103 of file outputactions.php.


Constructor & Destructor Documentation

__construct ( event,
url,
name = 'popup',
params = array() 
)

Constructor

Parameters:
string$eventDOM event
moodle_url | string$urlA moodle_url object, required if no jsfunction is given
string$method'post' or 'get'
array$paramsAn array of popup parameters
Returns:
void

Definition at line 133 of file outputactions.php.

Here is the call graph for this function:


Member Function Documentation

Returns a string of concatenated option->value pairs used by JS to call the popup window, based on this object's variables

Returns:
string String of option->value pairs for JS popup function.

Definition at line 168 of file outputactions.php.

Here is the caller graph for this function:


Field Documentation

$jsfunction = 'openpopup'

Reimplemented from component_action.

Definition at line 105 of file outputactions.php.

$params
Initial value:
 array(
            'height' =>  400,
            'width' => 500,
            'top' => 0,
            'left' => 0,
            'menubar' => false,
            'location' => false,
            'scrollbars' => true,
            'resizable' => true,
            'toolbar' => true,
            'status' => true,
            'directories' => false,
            'fullscreen' => false,
            'dependent' => true)

Definition at line 110 of file outputactions.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations