PHP Class TbBaseMenu

Inheritance: extends CMenu
Afficher le fichier Open project: yinhe/yincart Class Usage Examples

Méthodes publiques

Méthode Description
getDividerCssClass ( ) : string ### .getDividerCssClass()
getDropdownCssClass ( ) : string ### .getDropdownCssClass()
isVertical ( ) : boolean ### .isVertical()

Méthodes protégées

Méthode Description
normalizeItems ( array $items, string $route, boolean &$active ) : array ### .normalizeItems()
renderMenu ( array $items ) ### .renderMenu()
renderMenuItem ( array $item ) : string ### .renderMenuItem()

Method Details

getDividerCssClass() abstract public méthode

Returns the divider css class.
abstract public getDividerCssClass ( ) : string
Résultat string the class name

getDropdownCssClass() abstract public méthode

Returns the dropdown css class.
abstract public getDropdownCssClass ( ) : string
Résultat string the class name

isVertical() abstract public méthode

Returns whether this is a vertical menu.
abstract public isVertical ( ) : boolean
Résultat boolean the result

normalizeItems() protected méthode

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.
Résultat array the normalized menu items

renderMenu() protected méthode

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() protected méthode

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.
Résultat string the rendered item