PHP Класс Piwik\Menu\MenuAdmin

Plugins can implement the configureAdminMenu() 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.
Наследование: extends MenuAbstract
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
addDevelopmentItem ( string $menuName, array $url, integer $order = 50, boolean | string $tooltip = false ) See {@link add()}. Adds a new menu item to the development section of the admin menu.
addDiagnosticItem ( string $menuName, array $url, integer $order = 50, boolean | string $tooltip = false ) See {@link add()}. Adds a new menu item to the diagnostic section of the admin menu.
addMeasurableItem ( string $menuName, array $url, integer $order = 50, boolean | string $tooltip = false ) See {@link add()}. Adds a new menu item to the measurable section of the admin menu.
addPersonalItem ( string $menuName, array $url, integer $order = 50, boolean | string $tooltip = false ) See {@link add()}. Adds a new menu item to the manage section of the user menu.
addPlatformItem ( string $menuName, array $url, integer $order = 50, boolean | string $tooltip = false ) See {@link add()}. Adds a new menu item to the platform section of the admin menu.
addSystemItem ( string $menuName, array $url, integer $order = 50, boolean | string $tooltip = false ) See {@link add()}. Adds a new menu item to the manage section of the admin menu.
getMenu ( ) : Array Triggers the Menu.MenuAdmin.addItems hook and returns the admin menu.

Описание методов

addDevelopmentItem() публичный Метод

See {@link add()}. Adds a new menu item to the development section of the admin menu.
С версии: 2.5.0
public addDevelopmentItem ( string $menuName, array $url, integer $order = 50, boolean | string $tooltip = false )
$menuName string
$url array
$order integer
$tooltip boolean | string

addDiagnosticItem() публичный Метод

See {@link add()}. Adds a new menu item to the diagnostic section of the admin menu.
С версии: 2.5.0
public addDiagnosticItem ( string $menuName, array $url, integer $order = 50, boolean | string $tooltip = false )
$menuName string
$url array
$order integer
$tooltip boolean | string

addMeasurableItem() публичный Метод

See {@link add()}. Adds a new menu item to the measurable section of the admin menu.
С версии: 3.0.0
public addMeasurableItem ( string $menuName, array $url, integer $order = 50, boolean | string $tooltip = false )
$menuName string
$url array
$order integer
$tooltip boolean | string

addPersonalItem() публичный Метод

See {@link add()}. Adds a new menu item to the manage section of the user menu.
С версии: 2.5.0
public addPersonalItem ( string $menuName, array $url, integer $order = 50, boolean | string $tooltip = false )
$menuName string
$url array
$order integer
$tooltip boolean | string

addPlatformItem() публичный Метод

See {@link add()}. Adds a new menu item to the platform section of the admin menu.
С версии: 2.5.0
public addPlatformItem ( string $menuName, array $url, integer $order = 50, boolean | string $tooltip = false )
$menuName string
$url array
$order integer
$tooltip boolean | string

addSystemItem() публичный Метод

See {@link add()}. Adds a new menu item to the manage section of the admin menu.
С версии: 3.0.0
public addSystemItem ( string $menuName, array $url, integer $order = 50, boolean | string $tooltip = false )
$menuName string
$url array
$order integer
$tooltip boolean | string

getMenu() публичный Метод

Triggers the Menu.MenuAdmin.addItems hook and returns the admin menu.
public getMenu ( ) : Array
Результат Array