| 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
stringOptional, text to put between link items
addByController(string $controller, string $action= 'index', string $label= null) : \Gems_Menu_MenuList
stringController name
stringAction name
stringOptional 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).
stringOptional 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).
stringOptional alternative label
\Gems_Menu_MenuList(continuation pattern)addCurrentSiblings(boolean $anyParameters= false, $includeCurrent= false) : \Gems_Menu_MenuList
booleanWhen 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
stringOptional 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
stringController name
stringAction name
booleanOptional, set to true to remove the item from this list.
\MUtil_Html_HtmlElementgetActionLinks(boolean $remove, string $contr1, string $action1= null, $contr2= null, $action2= null) : \MUtil_Html_Sequence
booleanOptional, set to true to remove the item from this list.
stringController name
stringAction name, continues in pairs
\MUtil_Html_SequencegetFirstAction(boolean $remove = true) : \MUtil_Html_HtmlElement
booleanOptional, set to true to remove the item from this list.
\MUtil_Html_HtmlElementrender(\Zend_View_Abstract $view) : string
The $view is used to correctly encode and escape the output
\Zend_View_Abstract
stringCorrectly encoded and escaped html outputsetLabel(string $controller, string $action, string $label) : \Gems_Menu_MenuList
stringController name
stringAction name
stringAlternative 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
stringController name
stringAction name
stringtoActionLink(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'