Defines my profile page navigation tree.
More...
Defines my profile page navigation tree.
- Since
- Moodle 2.9
- Copyright
- 2015 onwards Ankit Agarwal
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ __get()
core_user\output\myprofile\tree::__get |
( |
|
$prop | ) |
|
Magic get method.
- Parameters
-
string | $prop | property to get. |
- Return values
-
- Exceptions
-
◆ add_category()
core_user\output\myprofile\tree::add_category |
( |
category |
$cat | ) |
|
Add a category to the tree.
- Parameters
-
category | $cat | category object. |
- Exceptions
-
◆ add_node()
core_user\output\myprofile\tree::add_node |
( |
node |
$node | ) |
|
Add a node to the tree.
- Parameters
-
- Exceptions
-
◆ attach_nodes_to_categories()
core_user\output\myprofile\tree::attach_nodes_to_categories |
( |
| ) |
|
|
protected |
Attach various nodes to their respective categories.
- Exceptions
-
◆ find_categories_after()
core_user\output\myprofile\tree::find_categories_after |
( |
|
$category | ) |
|
|
protected |
Find all category nodes that should be displayed after a given a category node.
- Parameters
-
category | $category | category object |
- Return values
-
category[] | array of category objects |
- Exceptions
-
◆ sort_categories()
core_user\output\myprofile\tree::sort_categories |
( |
| ) |
|
Sort categories and nodes.
Builds the tree structure that would be displayed to the user.
- Exceptions
-
The documentation for this class was generated from the following file: