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
string
Translation 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_SubMenuItem
addAgendaSetupPage(string $label, string $privilege, string $controller, array $other = array()
) : \Gems_Menu_SubMenuItem
. menu item
string
string
string
array
\Gems_Menu_SubMenuItem
addBrowsePage(string $label, string $privilege, string $controller, array $other = array()
) : \Gems_Menu_SubMenuItem
. menu item
string
string
string
array
\Gems_Menu_SubMenuItem
addButtonOnly(string $label, string $privilege, string $controller, string $action= 'index'
, array $other= array()
) : \Gems_Menu_SubMenuItem
string
string
string
string
array
\Gems_Menu_SubMenuItem
addCalendarPage(string $label) : \Gems_Menu_SubMenuItem
string
\Gems_Menu_SubMenuItem
addCommSetupMenu(string $label) : \Gems_Menu_SubMenuItem
string
\Gems_Menu_SubMenuItem
addContainer($label, $privilege= null
, array $other= array()
)
addExportContainer(string $label) : \Gems_Menu_MenuAbstract
string
Label for the container
\Gems_Menu_MenuAbstract
The new contact pageaddFilePage(string $label, string $privilege, string $controller, array $other = array()
) : \Gems_Menu_SubMenuItem
string
The label to display for the menu item, null for access without display
string
The privilege for the item, null is always, 'pr.islogin' must be logged in, 'pr.nologin' only when not logged in.
string
What controller to use
array
Array of extra options for this item, e.g. 'visible', 'allowed', 'class', 'icon', 'target', 'type', 'button_only'
\Gems_Menu_SubMenuItem
addGroupsPage(string $label, array $other = array()
) : \Gems_Menu_SubMenuItem
string
array
\Gems_Menu_SubMenuItem
addImportContainer(string $label) : \Gems_Menu_MenuAbstract
string
Label for the container
\Gems_Menu_MenuAbstract
The new contact pageaddLogControllers()
addPage(string $label, string $privilege, string $controller, string $action= 'index'
, array $other= array()
) : \Gems_Menu_SubMenuItem
string
The label to display for the menu item, null for access without display
string
The privilege for the item, null is always, 'pr.islogin' must be logged in, 'pr.nologin' only when not logged in.
string
What controller to use
string
The name of the action
array
Array of extra options for this item, e.g. 'visible', 'allowed', 'class', 'icon', 'target', 'type', 'button_only'
\Gems_Menu_SubMenuItem
addPlanPage(string $label) : \Gems_Menu_SubMenuItem
string
The label to display for the menu item, null for access without display
\Gems_Menu_SubMenuItem
addProjectInfoPage(string $label) : \Gems_Menu_SubMenuItem
string
\Gems_Menu_SubMenuItem
addProjectPage(string $label) : \Gems_Menu_SubMenuItem
string
\Gems_Menu_SubMenuItem
addStaffPage(string $label, array $other = array()
) : \Gems_Menu_SubMenuItem
string
array
\Gems_Menu_SubMenuItem
addTrackBuilderMenu(string $label, array $other = array()
) : \Gems_Menu_SubMenuItem
string
array
\Gems_Menu_SubMenuItem
getChildren() : array
array
of 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 |
---|
string
Singular translation string
string
Plural translation string
integer
Number for detecting the correct plural
string
\Zend_Locale
(Optional) Locale/Language to use, identical with locale identifier, @see \Zend_Locale for more information
string
sortByOrder() : \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_Abstract
add(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_SubMenuItem
applyAcl(\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_SubMenuItem
null
findItemPath($options)
findItems($options, array $results)
setBranchVisible(array $activeBranch) : \Gems_Menu_MenuAbstract
array
Of \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