Moodle PHP Documentation 5.1
Moodle 5.1dev (Build: 20250620) (7d9030acd6e)
block_navigation_renderer Class Reference

Renderer for block navigation. More...

Inheritance diagram for block_navigation_renderer:

Public Member Functions

 navigation_tree (global_navigation $navigation, $expansionlimit, array $options=array())
 Returns the content of the navigation tree.
 

Protected Member Functions

 navigation_node ($items, $attrs=array(), $expansionlimit=null, array $options=array(), $depth=1)
 Produces a navigation node for the navigation tree.
 

Detailed Description

Renderer for block navigation.

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

Member Function Documentation

◆ navigation_node()

block_navigation_renderer::navigation_node ( $items,
$attrs = array(),
$expansionlimit = null,
array $options = array(),
$depth = 1 )
protected

Produces a navigation node for the navigation tree.

Parameters
navigation_node[]$items
array$attrs
int$expansionlimit
array$options
int$depth
Return values
string

◆ navigation_tree()

block_navigation_renderer::navigation_tree ( global_navigation $navigation,
$expansionlimit,
array $options = array() )

Returns the content of the navigation tree.

Parameters
global_navigation$navigation
int$expansionlimit
array$options
Return values
string#$content

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