API16:JMenu
From Joomla! Documentation
(Difference between revisions)
(New page: <span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki>
</span>
{{Description:JMenu}}
===Defined in===
libraries...) |
|||
| Line 48: | Line 48: | ||
|Returns a JMenu object | |Returns a JMenu object | ||
|} | |} | ||
| + | |||
===Importing=== | ===Importing=== | ||
<source lang="php">jimport( 'joomla.application.menu' );</source> | <source lang="php">jimport( 'joomla.application.menu' );</source> | ||
Latest revision as of 04:59, 30 March 2010
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 |
[edit] Defined in
libraries/joomla/application/menu.php
[edit] Methods
| 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 |
[edit] Importing
jimport( 'joomla.application.menu' );
[edit] Examples
<CodeExamplesForm />
