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


Public Member Functions | |
| __construct (moodle_url $url, $name, array $options, $selected='', $nothing=array(''=>'choosedots'), $formid=null) | |
| add_confirm_action ($confirmmessage) | |
| add_action (component_action $action) | |
| set_old_help_icon ($helppage, $title, $component= 'moodle') | |
| set_help_icon ($identifier, $component= 'moodle') | |
| set_label ($label) | |
Data Fields | |
| $url | |
| $name | |
| $options | |
| $selected | |
| $nothing | |
| $attributes = array() | |
| $label = '' | |
| $method = 'get' | |
| $class = 'singleselect' | |
| $disabled = false | |
| $tooltip = null | |
| $formid = null | |
| $helpicon = null | |
Simple form with just one select field that gets submitted automatically. If JS not enabled small go button is printed too.
Definition at line 589 of file outputcomponents.php.
| __construct | ( | moodle_url $ | url, |
| $ | name, | ||
| array $ | options, | ||
| $ | selected = '', |
||
| $ | nothing = array(''=>'choosedots'), |
||
| $ | formid = null |
||
| ) |
Constructor
| moodle_url | $url | form action target, includes hidden fields |
| string | $name | name of selection field - the changing parameter in url |
| array | $options | list of options |
| string | $selected | selected element |
| array | $nothing | |
| string | $formid |
Definition at line 667 of file outputcomponents.php.
| add_action | ( | component_action $ | action | ) |
Add action to the button.
| component_action | $action |
Definition at line 691 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 682 of file outputcomponents.php.

| set_help_icon | ( | $ | identifier, |
| $ | component = 'moodle' |
||
| ) |
Adds help icon.
| string | $identifier | The keyword that defines a help page |
| string | $component | |
| bool | $linktext | add extra text to icon |
Definition at line 714 of file outputcomponents.php.
| set_label | ( | $ | label | ) |
Sets select's label
| string | $label |
Definition at line 723 of file outputcomponents.php.

| set_old_help_icon | ( | $ | helppage, |
| $ | title, | ||
| $ | component = 'moodle' |
||
| ) |
Adds help icon.
| string | $page | The keyword that defines a help page |
| string | $title | A descriptive text for accessibility only |
| string | $component | |
| bool | $linktext | add extra text to icon |
Definition at line 703 of file outputcomponents.php.
| $attributes = array() |
Definition at line 622 of file outputcomponents.php.
| $class = 'singleselect' |
Definition at line 637 of file outputcomponents.php.
| $disabled = false |
Definition at line 642 of file outputcomponents.php.
| $formid = null |
Definition at line 652 of file outputcomponents.php.
| $helpicon = null |
Definition at line 657 of file outputcomponents.php.
| $label = '' |
Definition at line 627 of file outputcomponents.php.
| $method = 'get' |
Definition at line 632 of file outputcomponents.php.
| $name |
Definition at line 599 of file outputcomponents.php.
| $nothing |
Definition at line 617 of file outputcomponents.php.
| $options |
Definition at line 607 of file outputcomponents.php.
| $selected |
Definition at line 612 of file outputcomponents.php.
| $tooltip = null |
Definition at line 647 of file outputcomponents.php.
| $url |
Definition at line 594 of file outputcomponents.php.