PHP Class Piwik\Menu\MenuTop

Plugins can implement the configureTopMenu() method of the Menu plugin class to add, rename of remove items. If your plugin does not have a Menu class yet you can create one using ./console generate:menu.
Inheritance: extends MenuAbstract
Datei anzeigen Open project: piwik/piwik Class Usage Examples

Public Methods

Method Description
addHtml ( string $menuName, string $data, boolean $displayedForCurrentUser, integer $order, string $tooltip ) Directly adds a menu entry containing html.
getMenu ( ) : Array Triggers the Menu.Top.addItems hook and returns the menu.

Method Details

addHtml() public method

Directly adds a menu entry containing html.
public addHtml ( string $menuName, string $data, boolean $displayedForCurrentUser, integer $order, string $tooltip )
$menuName string
$data string
$displayedForCurrentUser boolean
$order integer
$tooltip string Tooltip to display.

getMenu() public method

Triggers the Menu.Top.addItems hook and returns the menu.
public getMenu ( ) : Array
return Array