JMenu
From Joomla! Documentation
The "API16" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.
Defined in[edit]
libraries/joomla/application/menu.php
Methods[edit]
Method name | Description |
---|---|
__construct | Class constructor |
getItem | Get menu item by id |
setDefault | Set the default item by id |
getDefault | Get menu item by id |
setActive | Set the default item by id |
getActive | Get menu item by id |
getItems | Gets menu items by attribute |
getParams | Gets the parameter object for a certain menu item |
getMenu | Getter for the menu array |
authorise | Method to check JMenu object authorization against an access control object and optionally an access extension object |
load | Loads the menu items |
getInstance | Returns a JMenu object |
Importing[edit]
jimport( 'joomla.application.menu' );
Examples[edit]
Code Examples[edit]