|
Moodle
2.2.1
http://www.collinsharper.com
|


Public Member Functions | |
| __construct ($text=null, $type=self::TYPE_INFO) | |
| set_text ($text) | |
| set_type ($type=self::TYPE_INFO) | |
| set_action (moodle_url $url, $label) | |
| get_message () | |
| get_type () | |
| get_action_url () | |
| get_action_label () | |
Data Fields | |
| const | TYPE_INFO = 10 |
| const | TYPE_OK = 20 |
| const | TYPE_ERROR = 30 |
Protected Attributes | |
| $text = '' | |
| $type = self::TYPE_INFO | |
| $actionurl = null | |
| $actionlabel = '' | |
Renderable message to be displayed to the user
Message can contain an optional action link with a label that is supposed to be rendered as a button or a link.
Definition at line 2920 of file locallib.php.
| __construct | ( | $ | text = null, |
| $ | type = self::TYPE_INFO |
||
| ) |
| string | $text | short text to be displayed |
| string | $type | optional message type info|ok|error |
Definition at line 2939 of file locallib.php.

| get_action_label | ( | ) |
Returns action label
Definition at line 3009 of file locallib.php.

| get_action_url | ( | ) |
Returns action URL
Definition at line 3000 of file locallib.php.

| get_message | ( | ) |
Returns message text with HTML tags quoted
Definition at line 2982 of file locallib.php.


| get_type | ( | ) |
Returns message type
Definition at line 2991 of file locallib.php.

| set_action | ( | moodle_url $ | url, |
| $ | label | ||
| ) |
Sets the optional message action
| moodle_url | $url | to follow on action |
| string | $label | action label |
Definition at line 2972 of file locallib.php.
| set_text | ( | $ | text | ) |
Sets the message text
| string | $text | short text to be displayed |
Definition at line 2949 of file locallib.php.

| set_type | ( | $ | type = self::TYPE_INFO | ) |
Sets the message type
| int | $type |
Definition at line 2958 of file locallib.php.

$actionlabel = '' [protected] |
Definition at line 2933 of file locallib.php.
$actionurl = null [protected] |
Definition at line 2931 of file locallib.php.
$text = '' [protected] |
Definition at line 2927 of file locallib.php.
$type = self::TYPE_INFO [protected] |
Definition at line 2929 of file locallib.php.
| const TYPE_ERROR = 30 |
Definition at line 2924 of file locallib.php.
| const TYPE_INFO = 10 |
Definition at line 2922 of file locallib.php.
| const TYPE_OK = 20 |
Definition at line 2923 of file locallib.php.