Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.2.x will end 22 April 2024 (12 months).
  • Bug fixes for security issues in 4.2.x will end 7 October 2024 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.1.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