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

Public Member Functions

 __construct (moodle_url $url, $text, component_action $action=null, array $attributes=null)
 add_action (component_action $action)
 add_class ($class)

Data Fields

 $url
 $text
 $attributes
 $actions

Detailed Description

Data structure describing html link with special action attached.

Since:
Moodle 2.0

Definition at line 851 of file outputcomponents.php.


Constructor & Destructor Documentation

__construct ( moodle_url url,
text,
component_action action = null,
array attributes = null 
)

Constructor

Parameters:
string | moodle_url$url
string$textHTML fragment
component_action$action
array$attributesassociative array of html link attributes + disabled

Definition at line 880 of file outputcomponents.php.

Here is the call graph for this function:


Member Function Documentation

Add action to the link.

Parameters:
component_action$action
Returns:
void

Definition at line 894 of file outputcomponents.php.

Here is the caller graph for this function:

add_class ( class)

Definition at line 898 of file outputcomponents.php.


Field Documentation

$actions

Definition at line 871 of file outputcomponents.php.

Definition at line 866 of file outputcomponents.php.

$text

Definition at line 861 of file outputcomponents.php.

$url

Definition at line 856 of file outputcomponents.php.


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