Moodle APIs  3.8
Moodle 3.8.6 (Build: 20201109)
Public Member Functions | List of all members
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. More...
 
 __get ($prop)
 Magic get method. More...
 

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: