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


Public Member Functions | |
| __construct ($hoursname, $minutesname, $visiblename, $description, $defaultsetting) | |
| get_setting () | |
| write_setting ($data) | |
| output_html ($data, $query='') | |
Data Fields | |
| $name2 | |
Time selector
This is a liiitle bit messy. we're using two selects, but we're returning them as an array named after $name (so we only use $name2 internally for the setting)
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
Definition at line 2695 of file adminlib.php.
| __construct | ( | $ | hoursname, |
| $ | minutesname, | ||
| $ | visiblename, | ||
| $ | description, | ||
| $ | defaultsetting | ||
| ) |
Constructor
| string | $hoursname | setting for hours |
| string | $minutesname | setting for hours |
| string | $visiblename | localised |
| string | $description | long localised info |
| array | $defaultsetting | array representing default time 'h'=>hours, 'm'=>minutes |
Definition at line 2707 of file adminlib.php.
| get_setting | ( | ) |
Get the selected time
Reimplemented from admin_setting.
Definition at line 2717 of file adminlib.php.

| output_html | ( | $ | data, |
| $ | query = '' |
||
| ) |
Returns XHTML time select fields
| array | $data | Must be form 'h'=>xx, 'm'=>xx |
| string | $query |
Reimplemented from admin_setting.
Definition at line 2749 of file adminlib.php.

| write_setting | ( | $ | data | ) |
Store the time (hours and minutes)
| array | $data | Must be form 'h'=>xx, 'm'=>xx |
Reimplemented from admin_setting.
Definition at line 2733 of file adminlib.php.

| $name2 |
Definition at line 2697 of file adminlib.php.