Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
|
Public Member Functions | |
__construct () | |
Calls parent\__construct with specific arguments. | |
check_access () | |
Determines if the current user has access to this external page based on $this->req_capability. | |
get_settings_page_url () | |
Get the URL to view this settings page. | |
is_hidden () | |
Is this external page hidden in admin tree block? | |
locate ($name, $findpath=false) | |
Returns a reference to the part_of_admin_tree object with internal name $name. | |
locate ($name) | |
Finds a named part_of_admin_tree. | |
prune ($name) | |
This function always returns false, required function by interface. | |
search ($query) | |
Searches page for the specified string. | |
show_save () | |
Show we display Save button at the page bottom? | |
Public Attributes | |
object | $context |
The context in which capability/permission should be checked, default is site context. | |
bool | $hidden |
hidden in admin tree block. | |
string | $name |
An internal name for this external page. | |
mixed | $path |
either string or array of string | |
array | $req_capability |
The role capability/permission a user must have to access this external page. | |
string | $url |
The external URL that we should link to when someone requests this external page. | |
string | $visiblename |
The displayed name for this external page. | |
array | $visiblepath |
list of visible names of page parents | |
|
inherited |
Determines if the current user has access to this external page based on $this->req_capability.
bool | True if user has access, false otherwise. |
Implements part_of_admin_tree.
Reimplemented in core_admin\local\externalpage\accesscallback.
|
inherited |
Get the URL to view this settings page.
moodle_url |
Implements core_admin\local\settings\linkable_settings_page.
|
inherited |
Is this external page hidden in admin tree block?
bool | True if hidden |
Implements part_of_admin_tree.
|
inherited |
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 |
mixed | A reference to the object with internal name $name if found, otherwise a reference to NULL. |
|
inherited |
Finds a named part_of_admin_tree.
Used to find a part_of_admin_tree. If a class only inherits part_of_admin_tree and not parentable_part_of_admin_tree, then this function should only check if $this->name matches $name. If it does, it should return a reference to $this, otherwise, it should return a reference to NULL.
If a class inherits parentable_part_of_admin_tree, this method should be called recursively on all child objects (assuming, of course, the parent object's name doesn't match the search criterion).
string | $name | The internal name of the part_of_admin_tree we're searching for. |
mixed | An object reference or a NULL reference. |
|
inherited |
This function always returns false, required function by interface.
string | $name |
false |
Implements part_of_admin_tree.
admin_page_manageportfolios::search | ( | $query | ) |
Searches page for the specified string.
string | $query | The string to search for |
array |
Reimplemented from admin_externalpage.
|
inherited |
|
inherited |
An internal name for this external page.
Must be unique amongst ALL part_of_admin_tree objects
|
inherited |
The displayed name for this external page.
Usually obtained through get_string().