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

Public Member Functions

 __construct ($event, $jsfunction, $jsfunctionargs=array())

Data Fields

 $event
 $jsfunction = false
 $jsfunctionargs = array()

Detailed Description

Helper class used by other components that involve an action on the page (URL or JS).

Since:
Moodle 2.0

Definition at line 39 of file outputactions.php.


Constructor & Destructor Documentation

__construct ( event,
jsfunction,
jsfunctionargs = array() 
)

Constructor

Parameters:
string$eventDOM event
moodle_url$urlA moodle_url object, required if no jsfunction is given
string$method'post' or 'get'
string$jsfunctionAn optional JS function. Required if jsfunctionargs is given
array$jsfunctionargsAn array of arguments to pass to the jsfunction
Returns:
void

Definition at line 69 of file outputactions.php.


Field Documentation

Definition at line 45 of file outputactions.php.

$jsfunction = false

Reimplemented in popup_action.

Definition at line 53 of file outputactions.php.

$jsfunctionargs = array()

Definition at line 58 of file outputactions.php.


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