Class CMSMenu
The object manages the main CMS menu. See LeftAndMain::init() for
example usage.
- SS_Object
-
CMSMenu
implements
IteratorAggregate,
i18nEntityProvider
Used by:
CMSMain::init() Used by:
CommentAdmin::init() Used by:
CustomMenuAdmin::init() Used by:
FaqAdmin::init() Used by:
LeftAndMain::init() Used by:
NewsletterAdmin::init() Used by:
ReportAdmin::init() Used by:
SecurityAdmin::init() Used by:
WidgetAdmin::init() Located at cms/code/CMSMenu.php
Methods summary
public static
|
|
public static
|
|
public static
The
|
|
protected static
|
#
menuitem_for_controller( mixed $controllerClass )
Return a CMSMenuItem to add the given controller to the CMSMenu |
protected static
|
#
add_director_rule_for_controller( mixed $controllerClass )
Add the appropriate Director rules for the given controller. |
public static
boolean
|
|
public static
boolean
|
#
add_menu_item( string $code, string $menuTitle, string $url, string $controllerClass = null, mixed $priority = -1 )
Add a navigation item to the main administration menu showing in the top bar. |
public static
array
|
|
public static
array
|
|
public static
array
|
#
get_viewable_menu_items(
Get all menu items that the passed member can view. Defaults to |
public static
|
|
public static
|
|
public static
boolean
|
#
replace_menu_item( string $code, string $menuTitle, string $url, string $controllerClass = null, mixed $priority = -1 )
Replace a navigation item to the main administration menu showing in the top bar. |
protected static
|
#
add_menu_item_obj( mixed $code, mixed $cmsMenuItem )
Add a previously built menuitem object to the menu |
public static
array
|
#
get_cms_classes( string $root = 'LeftAndMain', boolean $recursive = true )
A utility funciton to retrieve subclasses of a given class that are instantiable (ie, not abstract) and have a valid menu title. |
public
|
|
public
array
|
Magic methods summary
Properties summary
protected static
array
|
$menu_item_changes |
#
An array of changes to be made to the menu items, in the order that the
changes should be applied. Each item is a map in one of the two forms: |
protected static
boolean
|
$menu_is_cleared |
#
Set to true if clear_menu() is called, to indicate that the default menu shouldn't be included |