JMenu: Difference between revisions
From Joomla! Documentation
No edit summary |
m clean up |
||
| Line 1: | Line 1: | ||
{{subst:Description:JMenu}} | |||
{{Description:JMenu}} | |||
===Defined in=== | ===Defined in=== | ||
| Line 52: | Line 49: | ||
<source lang="php">jimport( 'joomla.application.menu' );</source> | <source lang="php">jimport( 'joomla.application.menu' );</source> | ||
{{subst:SeeAlso:JMenu}} | |||
{{SeeAlso:JMenu}} | |||
===Examples=== | ===Examples=== | ||
Revision as of 13:22, 24 March 2017
{{subst:Description:JMenu}}
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' );
{{subst:SeeAlso:JMenu}}
Examples
<CodeExamplesForm />