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


Public Member Functions | |
| __construct ($name, $visiblename, $req_capability='moodle/site:config', $hidden=false, $context=NULL) | |
| locate ($name, $findpath=false) | |
| search ($query) | |
| prune ($name) | |
| add ($setting) | |
| check_access () | |
| output_html () | |
| is_hidden () | |
| show_save () | |
Data Fields | |
| $name | |
| $visiblename | |
| $settings | |
| $req_capability | |
| $context | |
| $hidden | |
| $path | |
| $visiblepath | |
Used to group a number of admin_setting objects into a page and add them to the admin tree.
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
Definition at line 1198 of file adminlib.php.
| __construct | ( | $ | name, |
| $ | visiblename, | ||
| $ | req_capability = 'moodle/site:config', |
||
| $ | hidden = false, |
||
| $ | context = NULL |
||
| ) |
see admin_settingpage for details of this function
| string | $name | The internal name for this external page. Must be unique amongst ALL part_of_admin_tree objects. |
| string | $visiblename | The displayed name for this external page. Usually obtained through get_string(). |
| mixed | $req_capability | The role capability/permission a user must have to access this external page. Defaults to 'moodle/site:config'. |
| boolean | $hidden | Is this external page hidden in admin tree block? Default false. |
| stdClass | $context | The context the page relates to. Not sure what happens if you specify something other than system or front page. Defaults to system. |
Definition at line 1234 of file adminlib.php.
| add | ( | $ | setting | ) |
adds an admin_setting to this admin_settingpage
not the same as add for admin_category. adds an admin_setting to this admin_settingpage. settings appear (on the settingpage) in the order in which they're added n.b. each admin_setting in an admin_settingpage must have a unique internal name
| object | $setting | is the admin_setting object you want to add |
Definition at line 1326 of file adminlib.php.

| check_access | ( | ) |
Implements part_of_admin_tree.
Definition at line 1341 of file adminlib.php.

| is_hidden | ( | ) |
Is this settings page hidden in admin tree block?
Implements part_of_admin_tree.
Definition at line 1378 of file adminlib.php.
| locate | ( | $ | name, |
| $ | findpath = false |
||
| ) |
see admin_category
| string | $name | |
| bool | $findpath |
Definition at line 1254 of file adminlib.php.
| output_html | ( | ) |
outputs this page as html in a table (suitable for inclusion in an admin pagetype)
Definition at line 1356 of file adminlib.php.

| prune | ( | $ | name | ) |
This function always returns false, required by interface
| string | $name |
Implements part_of_admin_tree.
Definition at line 1313 of file adminlib.php.
| search | ( | $ | query | ) |
Search string in settings page.
| string | $query |
Implements part_of_admin_tree.
Definition at line 1273 of file adminlib.php.

| show_save | ( | ) |
Show we display Save button at the page bottom?
Implements part_of_admin_tree.
Definition at line 1386 of file adminlib.php.
Definition at line 1213 of file adminlib.php.
| $hidden |
Definition at line 1216 of file adminlib.php.
| $name |
Definition at line 1201 of file adminlib.php.
| $path |
Definition at line 1219 of file adminlib.php.
| $req_capability |
Definition at line 1210 of file adminlib.php.
| $settings |
Definition at line 1207 of file adminlib.php.
| $visiblename |
Definition at line 1204 of file adminlib.php.
| $visiblepath |
Definition at line 1222 of file adminlib.php.