PHP Класс TbBaseMenu

Наследование: extends CMenu
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
getDividerCssClass ( ) : string ### .getDividerCssClass()
getDropdownCssClass ( ) : string ### .getDropdownCssClass()
isVertical ( ) : boolean ### .isVertical()

Защищенные методы

Метод Описание
normalizeItems ( array $items, string $route, boolean &$active ) : array ### .normalizeItems()
renderMenu ( array $items ) ### .renderMenu()
renderMenuItem ( array $item ) : string ### .renderMenuItem()

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

getDividerCssClass() абстрактный публичный Метод

Returns the divider css class.
abstract public getDividerCssClass ( ) : string
Результат string the class name

getDropdownCssClass() абстрактный публичный Метод

Returns the dropdown css class.
abstract public getDropdownCssClass ( ) : string
Результат string the class name

isVertical() абстрактный публичный Метод

Returns whether this is a vertical menu.
abstract public isVertical ( ) : boolean
Результат boolean the result

normalizeItems() защищенный Метод

Normalizes the {@link items} property so that the 'active' state is properly identified for every menu item.
protected normalizeItems ( array $items, string $route, boolean &$active ) : array
$items array the items to be normalized.
$route string the route of the current request.
$active boolean whether there is an active child menu item.
Результат array the normalized menu items

renderMenu() защищенный Метод

Renders the menu items.
protected renderMenu ( array $items )
$items array menu items. Each menu item will be an array with at least two elements: 'label' and 'active'. It may have three other optional elements: 'items', 'linkOptions' and 'itemOptions'.

renderMenuItem() защищенный Метод

Renders the content of a menu item. Note that the container and the sub-menus are not rendered here.
protected renderMenuItem ( array $item ) : string
$item array the menu item to be rendered. Please see {@link items} on what data might be in the item.
Результат string the rendered item