JMenu: Difference between revisions
From Joomla! Documentation
New page: <span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki>
</span>
{{Description:JMenu}}
===Defined in===
libraries... |
m preparing for archive only |
||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
===Defined in=== | ===Defined in=== | ||
libraries/joomla/application/menu.php | libraries/joomla/application/menu.php | ||
| Line 48: | Line 43: | ||
|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> | ||
===Examples=== | ===Examples=== | ||
=== Code Examples === | |||
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=JMenu | category=JMenu | ||
namespace=CodeExample | |||
category=ClassExample | category=ClassExample | ||
include=* | include=* | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
Latest revision as of 01:54, 25 March 2017
Defined in
libraries/joomla/application/menu.php
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 |
Importing
jimport( 'joomla.application.menu' );
Examples
Code Examples