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


Public Member Functions | |
| __construct ($name, $visiblename, $url, $req_capability='moodle/site:config', $hidden=false, $context=NULL) | |
| locate ($name, $findpath=false) | |
| prune ($name) | |
| search ($query) | |
| check_access () | |
| is_hidden () | |
| show_save () | |
Data Fields | |
| $name | |
| $visiblename | |
| $url | |
| $req_capability | |
| $context | |
| $hidden | |
| $path | |
| $visiblepath | |
Links external PHP pages into the admin tree.
See detailed usage example at the top of this document (adminlib.php)
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
Definition at line 1053 of file adminlib.php.
| __construct | ( | $ | name, |
| $ | visiblename, | ||
| $ | url, | ||
| $ | req_capability = 'moodle/site:config', |
||
| $ | hidden = false, |
||
| $ | context = NULL |
||
| ) |
Constructor for adding an external page into the admin tree.
| 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(). |
| string | $url | The external URL that we should link to when someone requests this external page. |
| 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 1090 of file adminlib.php.
| check_access | ( | ) |
Determines if the current user has access to this external page based on $this->req_capability.
Implements part_of_admin_tree.
Definition at line 1163 of file adminlib.php.

| is_hidden | ( | ) |
Is this external page hidden in admin tree block?
Implements part_of_admin_tree.
Definition at line 1179 of file adminlib.php.
| locate | ( | $ | name, |
| $ | findpath = false |
||
| ) |
Returns a reference to the part_of_admin_tree object with internal name $name.
| string | $name | The internal name of the object we want. |
| bool | $findpath | defaults to false |
Definition at line 1110 of file adminlib.php.
| prune | ( | $ | name | ) |
This function always returns false, required function by interface
| string | $name |
Implements part_of_admin_tree.
Definition at line 1129 of file adminlib.php.
| search | ( | $ | query | ) |
Search using query
| string | $query |
Implements part_of_admin_tree.
Reimplemented in admin_page_managefilters, admin_page_managerepositories, admin_page_manageportfolios, admin_page_manageqtypes, admin_page_manageqbehaviours, admin_page_managemessageoutputs, admin_page_manageblocks, and admin_page_managemods.
Definition at line 1139 of file adminlib.php.

| show_save | ( | ) |
Show we display Save button at the page bottom?
Implements part_of_admin_tree.
Definition at line 1187 of file adminlib.php.
Definition at line 1068 of file adminlib.php.
| $hidden |
Definition at line 1071 of file adminlib.php.
| $name |
Definition at line 1056 of file adminlib.php.
| $path |
Definition at line 1074 of file adminlib.php.
| $req_capability |
Definition at line 1065 of file adminlib.php.
| $url |
Definition at line 1062 of file adminlib.php.
| $visiblename |
Definition at line 1059 of file adminlib.php.
| $visiblepath |
Definition at line 1077 of file adminlib.php.