HCE Project DC service web UI  0.2
Hierarchical Cluster Engine DC service web UI
 All Classes Namespaces Files Functions Variables Pages
TbBaseMenu Class Reference
Inheritance diagram for TbBaseMenu:

Public Member Functions

 getDividerCssClass ()
 getDropdownCssClass ()
 isVertical ()

Protected Member Functions

 renderMenu ($items)
 renderMenuItem ($item)
 normalizeItems ($items, $route, &$active)

Detailed Description

Definition at line 17 of file TbBaseMenu.php.

Member Function Documentation

TbBaseMenu::getDividerCssClass ( )
abstract

.getDividerCssClass()

Returns the divider css class.

Returns
string the class name

Reimplemented in TbMenu, and TbDropdown.

TbBaseMenu::getDropdownCssClass ( )
abstract

.getDropdownCssClass()

Returns the dropdown css class.

Returns
string the class name

Reimplemented in TbMenu, and TbDropdown.

Here is the caller graph for this function:

TbBaseMenu::isVertical ( )
abstract

.isVertical()

Returns whether this is a vertical menu.

Returns
boolean the result

Reimplemented in TbMenu, and TbDropdown.

Here is the caller graph for this function:

TbBaseMenu::normalizeItems (   $items,
  $route,
$active 
)
protected

.normalizeItems()

Normalizes the items property so that the 'active' state is properly identified for every menu item.

Parameters
array$itemsthe items to be normalized.
string$routethe route of the current request.
boolean$activewhether there is an active child menu item.
Returns
array the normalized menu items

Definition at line 189 of file TbBaseMenu.php.

Here is the call graph for this function:

TbBaseMenu::renderMenu (   $items)
protected

.renderMenu()

Renders the menu items.

Parameters
array$itemsmenu 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.

Here is the call graph for this function:

TbBaseMenu::renderMenuItem (   $item)
protected

.renderMenuItem()

Renders the content of a menu item. Note that the container and the sub-menus are not rendered here.

Parameters
array$itemthe 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.

Here is the caller graph for this function:


The documentation for this class was generated from the following file: