API15:JMenu
From Joomla! Documentation
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.
[Edit Descripton] Description:JMenu
Contents |
Defined in
libraries/joomla/application/menu.php
Methods
| Method name | Description |
|---|---|
| __construct | Class constructor |
| getInstance | Returns a reference to a JMenu object |
| 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 |
| authorize | Method to check JMenu object authorization against an access control object and optionally an access extension object |
| load | Loads the menu items |
Importing
jimport( 'joomla.application.menu' );
Examples
<CodeExamplesForm />
