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


Public Member Functions | |
| __construct (moodle_url $url, $label, $method='post') | |
| add_confirm_action ($confirmmessage) | |
| add_action (component_action $action) | |
Data Fields | |
| $url | |
| $label | |
| $method = 'post' | |
| $class = 'singlebutton' | |
| $disabled = false | |
| $tooltip = null | |
| $formid | |
| $actions = array() | |
Data structure representing a simple form with only one button.
Definition at line 506 of file outputcomponents.php.
| __construct | ( | moodle_url $ | url, |
| $ | label, | ||
| $ | method = 'post' |
||
| ) |
Constructor
| string | moodle_url | $url | |
| string | $label | button text |
| string | $method | get or post submit method |
Reimplemented in enrol_user_button.
Definition at line 554 of file outputcomponents.php.
| add_action | ( | component_action $ | action | ) |
Add action to the button.
| component_action | $action |
Definition at line 575 of file outputcomponents.php.

| add_confirm_action | ( | $ | confirmmessage | ) |
Shortcut for adding a JS confirm dialog when the button is clicked. The message must be a yes/no question.
| string | $message | The yes/no confirmation question. If "Yes" is clicked, the original action will occur. |
Definition at line 566 of file outputcomponents.php.

| $actions = array() |
Definition at line 546 of file outputcomponents.php.
| $class = 'singlebutton' |
Definition at line 526 of file outputcomponents.php.
| $disabled = false |
Definition at line 531 of file outputcomponents.php.
Definition at line 541 of file outputcomponents.php.
Definition at line 516 of file outputcomponents.php.
| $method = 'post' |
Definition at line 521 of file outputcomponents.php.
| $tooltip = null |
Definition at line 536 of file outputcomponents.php.
| $url |
Definition at line 511 of file outputcomponents.php.