Defines a category in my profile page navigation.
More...
Defines a category in my profile page navigation.
- Since
- Moodle 2.9
- Copyright
- 2015 onwards Ankit Agarwal
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ __construct()
core_user\output\myprofile\category::__construct |
( |
|
$name, |
|
|
|
$title, |
|
|
|
$after = null , |
|
|
|
$classes = null |
|
) |
| |
Constructor for category class.
- Parameters
-
string | $name | Category name. |
string | $title | category title. |
null | string | $after | Name of category after which this category should appear. |
null | string | $classes | a list of css classes. |
◆ __get()
core_user\output\myprofile\category::__get |
( |
|
$prop | ) |
|
Magic get method.
- Parameters
-
string | $prop | property to get. |
- Return values
-
- Exceptions
-
◆ add_node()
core_user\output\myprofile\category::add_node |
( |
node |
$node | ) |
|
Add a node to this category.
- Parameters
-
- See also
- core_user\output\myprofile\tree::add_node()
- Exceptions
-
◆ find_nodes_after()
core_user\output\myprofile\category::find_nodes_after |
( |
|
$node | ) |
|
|
protected |
Given a node object find all node objects that should appear after it.
- Parameters
-
- Return values
-
◆ sort_nodes()
core_user\output\myprofile\category::sort_nodes |
( |
| ) |
|
Sort nodes of the category in the order in which they should be displayed.
- See also
- core_user\output\myprofile\tree::sort_categories()
- Exceptions
-
◆ validate_after_order()
core_user\output\myprofile\category::validate_after_order |
( |
| ) |
|
|
protected |
Verifies that node with content can come after node with content only .
Also verifies the same thing for nodes without content.
- Exceptions
-
The documentation for this class was generated from the following file: