package | Gems |
---|---|
subpackage | Menu |
copyright | Copyright (c) 2011 Erasmus MC |
license | New BSD License |
since | Class available since version 1.4 |
__construct(\Gems_Menu $menu, string $glue = ' '
)
\Gems_Menu
string
Optional, text to put between link items
addByController(string $controller, string $action= 'index'
, string $label= null
) : \Gems_Menu_MenuList
string
Controller name
string
Action name
string
Optional alternative label
\Gems_Menu_MenuList
(continuation pattern)addCurrentChildren() : \Gems_Menu_MenuList
\Gems_Menu_MenuList
(continuation pattern)addCurrentGrandParent(string $label = null
) : \Gems_Menu_MenuList
Does nothing when the parent is a top level item (has no controllor or is the \Gems_menu itself).
string
Optional alternative label
\Gems_Menu_MenuList
(continuation pattern)addCurrentParent(string $label = null
) : \Gems_Menu_MenuList
Does nothing when the parent is a top level item (has no controllor or is the \Gems_menu itself).
string
Optional alternative label
\Gems_Menu_MenuList
(continuation pattern)addCurrentSiblings(boolean $anyParameters= false
, $includeCurrent= false
) : \Gems_Menu_MenuList
boolean
When false, siblings must have the same parameter set as the current menu item
\Gems_Menu_MenuList
(continuation pattern)addMenuItem(\Gems_Menu_SubMenuItem $menuItem, string $label = null
) : \Gems_Menu_MenuList
\Gems_Menu_SubMenuItem
string
Optional alternative label
\Gems_Menu_MenuList
(continuation pattern)addParameterSources($source_1, $source_2 = null
) : \Gems_Menu_MenuList
\Gems_Menu_MenuList
(continuation pattern)getActionLink(string $controller, string $action= 'index'
, boolean $remove= false
) : \MUtil_Html_HtmlElement
string
Controller name
string
Action name
boolean
Optional, set to true to remove the item from this list.
\MUtil_Html_HtmlElement
getActionLinks(boolean $remove, string $contr1, string $action1= null
, $contr2= null
, $action2= null
) : \MUtil_Html_Sequence
boolean
Optional, set to true to remove the item from this list.
string
Controller name
string
Action name, continues in pairs
\MUtil_Html_Sequence
getFirstAction(boolean $remove = true
) : \MUtil_Html_HtmlElement
boolean
Optional, set to true to remove the item from this list.
\MUtil_Html_HtmlElement
render(\Zend_View_Abstract $view) : string
The $view is used to correctly encode and escape the output
\Zend_View_Abstract
string
Correctly encoded and escaped html outputsetLabel(string $controller, string $action, string $label) : \Gems_Menu_MenuList
string
Controller name
string
Action name
string
Alternative label
\Gems_Menu_MenuList
(continuation pattern)setLowerCase(boolean $value = true
) : \Gems_Menu_MenuList
boolean
\Gems_Menu_MenuList
(continuation pattern)showDisabled(boolean $value = true
) : \Gems_Menu_MenuList
boolean
\Gems_Menu_MenuList
(continuation pattern)_getKey(string $controller, string $action) : string
string
Controller name
string
Action name
string
toActionLink(string $key) : \MUtil_Html_HtmlElement
string
\MUtil_Html_HtmlElement
$altLabels : array
$linkFunction : string
'toActionLink'
$sources : array
array(self::KEY_DISABLED => false)
KEY_DISABLED = 'key_disabled'