Detailed Description
Definition at line 17 of file TbBaseMenu.php.
Member Function Documentation
TbBaseMenu::getDividerCssClass |
( |
| ) |
|
|
abstract |
Returns the divider css class.
- Returns
- string the class name
Reimplemented in TbMenu, and TbDropdown.
TbBaseMenu::getDropdownCssClass |
( |
| ) |
|
|
abstract |
Returns the dropdown css class.
- Returns
- string the class name
Reimplemented in TbMenu, and TbDropdown.
TbBaseMenu::isVertical |
( |
| ) |
|
|
abstract |
Returns whether this is a vertical menu.
- Returns
- boolean the result
Reimplemented in TbMenu, and TbDropdown.
TbBaseMenu::normalizeItems |
( |
|
$items, |
|
|
|
$route, |
|
|
& |
$active |
|
) |
| |
|
protected |
Normalizes the items property so that the 'active' state is properly identified for every menu item.
- Parameters
-
array | $items | the items to be normalized. |
string | $route | the route of the current request. |
boolean | $active | whether there is an active child menu item. |
- Returns
- array the normalized menu items
Definition at line 189 of file TbBaseMenu.php.
TbBaseMenu::renderMenu |
( |
|
$items | ) |
|
|
protected |
Renders the menu items.
- Parameters
-
array | $items | 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'. |
Definition at line 50 of file TbBaseMenu.php.
TbBaseMenu::renderMenuItem |
( |
|
$item | ) |
|
|
protected |
Renders the content of a menu item. Note that the container and the sub-menus are not rendered here.
- Parameters
-
array | $item | the menu item to be rendered. Please see items on what data might be in the item. |
- Returns
- string the rendered item
Reimplemented in TbDropdown.
Definition at line 141 of file TbBaseMenu.php.
The documentation for this class was generated from the following file: