Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is supported too.

Defines a node in my profile page navigation.

Copyright: 2015 onwards Ankit Agarwal
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 120 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

node:: (2 methods):
  __construct()
  __get()


Class: node  - X-Ref

Defines a node in my profile page navigation.

__construct($parentcat, $name, $title, $after = null, $url = null, $content = null, $icon = null,$classes = null)   X-Ref
Constructor for the node.

param: string $parentcat Name of parent category.
param: string $name Name of this node.
param: string $title Title of this node.
param: null|string $after Name of the node after which this node should appear.
param: null|string|\moodle_url $url Url that this node should link to.
param: null|string $content Content to display under this node.
param: null|string|\pix_icon $icon Icon for this node.
param: null|string $classes a list of css classes.

__get($prop)   X-Ref
Magic get method.

param: string $prop property to get.
return: mixed