Base class for building a menu / button structure where the display of items is dependent on both privileges and the availability of parameter information, e.g. data to fill an 'id' parameter.
| package | Gems |
|---|---|
| subpackage | Menu |
| copyright | Copyright (c) 2011 Erasmus MC |
| license | New BSD License |
| since | Class available since version 1.0 |
_(string $text, string|\Zend_Locale $locale = null) : string
Translates the given string returns the translation
stringTranslation string
string\Zend_Locale(optional) Locale/Language to use, identical with locale identifier, @see \Zend_Locale for more information
string__construct(\GemsEscort $escort)
addAgendaSetupMenu(string $label) : \Gems_Menu_SubMenuItem
string
\Gems_Menu_SubMenuItemaddAgendaSetupPage(string $label, string $privilege, string $controller, array $other = array()) : \Gems_Menu_SubMenuItem
. menu item
string
string
string
array
\Gems_Menu_SubMenuItemaddBrowsePage(string $label, string $privilege, string $controller, array $other = array()) : \Gems_Menu_SubMenuItem
. menu item
string
string
string
array
\Gems_Menu_SubMenuItemaddButtonOnly(string $label, string $privilege, string $controller, string $action= 'index', array $other= array()) : \Gems_Menu_SubMenuItem
string
string
string
string
array
\Gems_Menu_SubMenuItemaddCalendarPage(string $label) : \Gems_Menu_SubMenuItem
string
\Gems_Menu_SubMenuItemaddCommSetupMenu(string $label) : \Gems_Menu_SubMenuItem
string
\Gems_Menu_SubMenuItemaddContainer($label, $privilege= null, array $other= array())
addExportContainer(string $label) : \Gems_Menu_MenuAbstract
stringLabel for the container
\Gems_Menu_MenuAbstractThe new contact pageaddFilePage(string $label, string $privilege, string $controller, array $other = array()) : \Gems_Menu_SubMenuItem
stringThe label to display for the menu item, null for access without display
stringThe privilege for the item, null is always, 'pr.islogin' must be logged in, 'pr.nologin' only when not logged in.
stringWhat controller to use
arrayArray of extra options for this item, e.g. 'visible', 'allowed', 'class', 'icon', 'target', 'type', 'button_only'
\Gems_Menu_SubMenuItemaddGroupsPage(string $label, array $other = array()) : \Gems_Menu_SubMenuItem
string
array
\Gems_Menu_SubMenuItemaddImportContainer(string $label) : \Gems_Menu_MenuAbstract
stringLabel for the container
\Gems_Menu_MenuAbstractThe new contact pageaddLogControllers()
addPage(string $label, string $privilege, string $controller, string $action= 'index', array $other= array()) : \Gems_Menu_SubMenuItem
stringThe label to display for the menu item, null for access without display
stringThe privilege for the item, null is always, 'pr.islogin' must be logged in, 'pr.nologin' only when not logged in.
stringWhat controller to use
stringThe name of the action
arrayArray of extra options for this item, e.g. 'visible', 'allowed', 'class', 'icon', 'target', 'type', 'button_only'
\Gems_Menu_SubMenuItemaddPlanPage(string $label) : \Gems_Menu_SubMenuItem
stringThe label to display for the menu item, null for access without display
\Gems_Menu_SubMenuItemaddProjectInfoPage(string $label) : \Gems_Menu_SubMenuItem
string
\Gems_Menu_SubMenuItemaddProjectPage(string $label) : \Gems_Menu_SubMenuItem
string
\Gems_Menu_SubMenuItemaddStaffPage(string $label, array $other = array()) : \Gems_Menu_SubMenuItem
string
array
\Gems_Menu_SubMenuItemaddTrackBuilderMenu(string $label, array $other = array()) : \Gems_Menu_SubMenuItem
string
array
\Gems_Menu_SubMenuItemgetChildren() : array
arrayof type \Gems_Menu_SubMenuItemhasChildren()
isTopLevel()
isVisible()
plural(string $singular, string $plural, integer $number, string|\Zend_Locale $locale = null) : string
Translates the given string using plural notations Returns the translated string
| see |
|---|
stringSingular translation string
stringPlural translation string
integerNumber for detecting the correct plural
string\Zend_Locale(Optional) Locale/Language to use, identical with locale identifier, @see \Zend_Locale for more information
stringsortByOrder() : \Gems_Menu_MenuAbstract
\Gems_Menu_MenuAbstract(continuation pattern)sortOrder(self $aItem, self $bItem) : integer
_addUsedPrivileges(array $privileges, $label)
array
_getOriginalRequest() : \Zend_Controller_Request_Abstract
\Zend_Controller_Request_Abstractadd(array $args_array) : \Gems_Menu_SubMenuItem
The argumenets can be any of those used for \Zend_Navigation_Page as well as some Gems specials.
| see |
|---|
array\MUtil_Ra::args array with defaults 'visible' and 'allowed' true.
\Gems_Menu_SubMenuItemapplyAcl(\Zend_Acl $acl, string $userRole) : \Gems_Menu_MenuAbstract
\Zend_Acl
string
\Gems_Menu_MenuAbstract(continuation pattern)findItem(\<type> $options, \<type> $findDeep = true) : \Gems_Menu_SubMenuItem | null
\<type>
\<type>
\Gems_Menu_SubMenuItemnull
findItemPath($options)
findItems($options, array $results)
setBranchVisible(array $activeBranch) : \Gems_Menu_MenuAbstract
arrayOf \Gems_Menu_Menu Abstract items
\Gems_Menu_MenuAbstract(continuation pattern)setForChildren($key, $value)
$escort : \GemsEscort
$_subItems
array()$translateAdapter : \Zend_Translate_Adapter
$user : \Gems_User_User