Public Member Functions | |
init () | |
run () | |
Data Fields | |
$items =array() | |
$itemTemplate | |
$encodeLabel =true | |
$activeCssClass ='active' | |
$activateItems =true | |
$activateParents =false | |
$hideEmptyItems =true | |
$htmlOptions =array() | |
$submenuHtmlOptions =array() | |
$firstItemCssClass | |
$lastItemCssClass | |
$cls | |
$prelinklabel | |
$postlinklabel | |
Protected Member Functions | |
renderMenu ($items) | |
renderMenuRecursive ($items) | |
renderMenuItem ($item) | |
normalizeItems ($items, $route, &$active) | |
isItemActive ($item, $route) | |
ArtMenu class file.
Definition at line 43 of file ArtMenu.php.
init | ( | ) |
Initializes the menu widget. This method mainly normalizes the items property. If this method is overridden, make sure the parent implementation is invoked.
Definition at line 164 of file ArtMenu.php.
|
protected |
Checks whether a menu item is active. This is done by checking if the currently requested URL is generated by the 'url' option of the menu item. Note that the GET parameters not specified in the 'url' option will be ignored.
array | $item | the menu item to be checked |
string | $route | the route of the current request |
Definition at line 320 of file ArtMenu.php.
|
protected |
Normalizes the items property so that the 'active' state is properly identified for every menu item.
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. |
Definition at line 279 of file ArtMenu.php.
|
protected |
Renders the menu items.
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 187 of file ArtMenu.php.
|
protected |
Renders the content of a menu item. Note that the container and the sub-menus are not rendered here.
array | $item | the menu item to be rendered. Please see items on what data might be in the item. |
Definition at line 253 of file ArtMenu.php.
|
protected |
Recursively renders the menu items.
array | $items | the menu items to be rendered recursively |
Definition at line 201 of file ArtMenu.php.
run | ( | ) |
Calls renderMenu to render the menu.
Definition at line 177 of file ArtMenu.php.
$activateItems =true |
Definition at line 93 of file ArtMenu.php.
$activateParents =false |
Definition at line 99 of file ArtMenu.php.
$activeCssClass ='active' |
Definition at line 87 of file ArtMenu.php.
$cls |
Definition at line 143 of file ArtMenu.php.
$encodeLabel =true |
Definition at line 82 of file ArtMenu.php.
$firstItemCssClass |
Definition at line 127 of file ArtMenu.php.
$hideEmptyItems =true |
Definition at line 104 of file ArtMenu.php.
$htmlOptions =array() |
Definition at line 108 of file ArtMenu.php.
$items =array() |
Definition at line 70 of file ArtMenu.php.
$itemTemplate |
Definition at line 78 of file ArtMenu.php.
$lastItemCssClass |
Definition at line 133 of file ArtMenu.php.
$postlinklabel |
Definition at line 157 of file ArtMenu.php.
$prelinklabel |
Definition at line 150 of file ArtMenu.php.
$submenuHtmlOptions =array() |
Definition at line 112 of file ArtMenu.php.