PHP Class NestedCollectionAdapter, vanilla

Maintains backwards compatability with the SideMenuModule.
Since: 2.3
Author: Becky Van Bussel ([email protected])
ファイルを表示 Open project: vanilla/vanilla

Public Properties

Property Type Description
$siteNavModule

Public Methods

Method 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 method

public __construct ( $siteNavModule = null )

addItem() public method

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

clearGroups() public method

public clearGroups ( )

highlightRoute() public method

public highlightRoute ( string $route )
$route string

removeGroup() public method

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

Property Details

$siteNavModule public_oe property

public $siteNavModule