Moodle PHP Documentation 4.2
Moodle 4.2.8 (Build: 20240610) (2d41ac46f45)
core_user\output\myprofile\node Class Reference

Defines a node in my profile page navigation. More...

Inheritance diagram for core_user\output\myprofile\node:
renderable

Public Member Functions

 __construct ($parentcat, $name, $title, $after=null, $url=null, $content=null, $icon=null, $classes=null)
 Constructor for the node.
 
 __get ($prop)
 Magic get method.
 

Detailed Description

Defines a node in my profile page navigation.

Since
Moodle 2.9
License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Constructor & Destructor Documentation

◆ __construct()

core_user\output\myprofile\node::__construct ( $parentcat,
$name,
$title,
$after = null,
$url = null,
$content = null,
$icon = null,
$classes = null )

Constructor for the node.

Parameters
string$parentcatName of parent category.
string$nameName of this node.
string$titleTitle of this node.
null | string$afterName of the node after which this node should appear.
null | string | moodle_url$urlUrl that this node should link to.
null | string$contentContent to display under this node.
null | string | pix_icon$iconIcon for this node.
null | string$classesa list of css classes.

Member Function Documentation

◆ __get()

core_user\output\myprofile\node::__get ( $prop)

Magic get method.

Parameters
string$propproperty to get.
Return values
mixed
Exceptions
coding_exception

The documentation for this class was generated from the following file: