PHP Class NestedCollectionAdapter, vanilla

Maintains backwards compatability with the SideMenuModule.
Since: 2.3
Author: Becky Van Bussel ([email protected])
Afficher le fichier Open project: vanilla/vanilla

Méthodes publiques

Свойство Type Description
$siteNavModule

Méthodes publiques

Méthode Description
__construct ( $siteNavModule = null )
addItem ( $group, $text, boolean $permission = false, array $attributes = [] )
addLink ( $group, $text, $url, boolean $permission = false, array $attributes = [] )
clearGroups ( )
highlightRoute ( string $route )
removeGroup ( $Group ) Removes an entire group of links, and the group itself, from the menu.
removeLink ( $Group, $Text )
removeLinks ( $Group ) Removes all links from a specific group.

Method Details

__construct() public méthode

public __construct ( $siteNavModule = null )

addItem() public méthode

public addItem ( $group, $text, boolean $permission = false, array $attributes = [] )
$group
$text
$permission boolean
$attributes array

clearGroups() public méthode

public clearGroups ( )

highlightRoute() public méthode

public highlightRoute ( string $route )
$route string

removeGroup() public méthode

Removes an entire group of links, and the group itself, from the menu.
public removeGroup ( $Group )

Property Details

$siteNavModule public_oe property

public $siteNavModule