Definition at line 59 of file Freshy2Menu.php.
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 153 of file Freshy2Menu.php.
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 153 of file Freshy2Menu.php.
isItemActive |
( |
|
$item, |
|
|
|
$route |
|
) |
| |
|
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.
- Parameters
-
array | the menu item to be checked |
string | the route of the current request |
- Returns
- boolean whether the menu item is active
Definition at line 284 of file Freshy2Menu.php.
isItemActive |
( |
|
$item, |
|
|
|
$route |
|
) |
| |
|
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.
- Parameters
-
array | the menu item to be checked |
string | the route of the current request |
- Returns
- boolean whether the menu item is active
Definition at line 284 of file Freshy2Menu.php.
normalizeItems |
( |
|
$items, |
|
|
|
$route, |
|
|
& |
$active |
|
) |
| |
|
protected |
Normalizes the items property so that the 'active' state is properly identified for every menu item.
- Parameters
-
array | the items to be normalized. |
string | the route of the current request. |
boolean | whether there is an active child menu item. |
- Returns
- array the normalized menu items
Definition at line 245 of file Freshy2Menu.php.
normalizeItems |
( |
|
$items, |
|
|
|
$route, |
|
|
& |
$active |
|
) |
| |
|
protected |
Normalizes the items property so that the 'active' state is properly identified for every menu item.
- Parameters
-
array | the items to be normalized. |
string | the route of the current request. |
boolean | whether there is an active child menu item. |
- Returns
- array the normalized menu items
Definition at line 245 of file Freshy2Menu.php.
Renders the menu items.
- Parameters
-
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'. |
Definition at line 173 of file Freshy2Menu.php.
Renders the menu items.
- Parameters
-
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'. |
Definition at line 173 of file Freshy2Menu.php.
renderMenuRecursive |
( |
|
$items) | |
|
|
protected |
Recursively renders the menu items.
- Parameters
-
array | the menu items to be rendered recursively |
Definition at line 187 of file Freshy2Menu.php.
renderMenuRecursive |
( |
|
$items) | |
|
|
protected |
Recursively renders the menu items.
- Parameters
-
array | the menu items to be rendered recursively |
Definition at line 187 of file Freshy2Menu.php.
$activeCssClass ='active' |
$submenuHtmlOptions =array() |
The documentation for this class was generated from the following files: