Difference between revisions of "JMenu"
From Joomla! Documentation
(Layout updates) |
m (moving preparation) |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
+ | =={{JVer|11.1}} JMenu== | ||
+ | ===Description=== | ||
+ | {{Description:JMenu}} | ||
<span class="editsection" style="font-size:76%;"> | <span class="editsection" style="font-size:76%;"> | ||
<nowiki>[</nowiki>[[Description:JMenu|Edit Descripton]]<nowiki>]</nowiki> | <nowiki>[</nowiki>[[Description:JMenu|Edit Descripton]]<nowiki>]</nowiki> | ||
</span> | </span> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
===Methods=== | ===Methods=== | ||
{| class="wikitable sortable" | {| class="wikitable sortable" | ||
|- | |- | ||
+ | !Visibility | ||
!Method name | !Method name | ||
!Description | !Description | ||
|- | |- | ||
− | |[[JMenu::__construct | + | |public |
+ | |[[API17:JMenu::__construct|__construct]] | ||
|Class constructor. | |Class constructor. | ||
|- | |- | ||
− | |[[JMenu::authorise | + | |public |
+ | |[[API17:JMenu::authorise|authorise]] | ||
|Method to check object authorization against an access control object and optionally an access extension object. | |Method to check object authorization against an access control object and optionally an access extension object. | ||
|- | |- | ||
− | |[[JMenu::getActive | + | |public |
+ | |[[API17:JMenu::getActive|getActive]] | ||
|Get menu item by id. | |Get menu item by id. | ||
|- | |- | ||
− | |[[JMenu::getDefault | + | |public |
+ | |[[API17:JMenu::getDefault|getDefault]] | ||
|Get menu item by id. | |Get menu item by id. | ||
|- | |- | ||
− | |[[JMenu::getItem | + | |public |
+ | |[[API17:JMenu::getItem|getItem]] | ||
|Get menu item by id. | |Get menu item by id. | ||
|- | |- | ||
− | |[[JMenu::getItems | + | |public |
+ | |[[API17:JMenu::getItems|getItems]] | ||
|Gets menu items by attribute. | |Gets menu items by attribute. | ||
|- | |- | ||
− | |[[JMenu::getMenu | + | |public |
+ | |[[API17:JMenu::getMenu|getMenu]] | ||
|Getter for the menu array. | |Getter for the menu array. | ||
|- | |- | ||
− | |[[JMenu::getParams | + | |public |
+ | |[[API17:JMenu::getParams|getParams]] | ||
|Gets the parameter object for a certain menu item. | |Gets the parameter object for a certain menu item. | ||
|- | |- | ||
− | |[[JMenu::load | + | |public |
+ | |[[API17:JMenu::load|load]] | ||
|Loads the menu items. | |Loads the menu items. | ||
|- | |- | ||
− | |[[JMenu::setActive | + | |public |
+ | |[[API17:JMenu::setActive|setActive]] | ||
|Set the default item by id. | |Set the default item by id. | ||
|- | |- | ||
− | |[[JMenu::setDefault | + | |public |
+ | |[[API17:JMenu::setDefault|setDefault]] | ||
|Set the default item by id and language code. | |Set the default item by id and language code. | ||
|- | |- | ||
− | |[[JMenu::getInstance | + | |public static |
+ | |[[API17:JMenu::getInstance|getInstance]] | ||
|Returns a object. | |Returns a object. | ||
|- | |- | ||
|} | |} | ||
+ | * '''Defined in''' libraries/joomla/application/menu.php | ||
+ | * '''Extends''' [[API17:JObject|JObject]] | ||
===Importing=== | ===Importing=== | ||
<source lang="php">jimport( 'joomla.application.menu' );</source> | <source lang="php">jimport( 'joomla.application.menu' );</source> | ||
===See also=== | ===See also=== | ||
− | * JMenu source code | + | * {{JVer|11.1}} '''JMenu source code''' on [[jplatform:application/menu.php|BitBucket]] |
− | * [[JMenu|Other versions of | + | * {{JVer|11.1}} Subpackage [[API17:Subpackage Application|Application]] |
+ | * [[API17:JMenu|Other versions of JMenu]] | ||
{{SeeAlso:JMenu}} | {{SeeAlso:JMenu}} | ||
<span class="editsection" style="font-size:76%;"> | <span class="editsection" style="font-size:76%;"> | ||
<nowiki>[</nowiki>[[SeeAlso:JMenu|Edit See Also]]<nowiki>]</nowiki> | <nowiki>[</nowiki>[[SeeAlso:JMenu|Edit See Also]]<nowiki>]</nowiki> | ||
</span> | </span> | ||
− | === | + | ===User contributed notes=== |
<CodeExamplesForm /> | <CodeExamplesForm /> | ||
<dpl> | <dpl> | ||
Line 72: | Line 82: | ||
category=ClassExample | category=ClassExample | ||
include=* | include=* | ||
+ | namespace=CodeExample | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
− | <noinclude> | + | <noinclude>[[Category:Platform 11.1]][[Category:Archived pages API17]]</noinclude> |
Revision as of 21:11, 11 May 2013
The "API17" 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.
JMenu[edit]
Description[edit]
Template:Description:JMenu [Edit Descripton]
Methods[edit]
Visibility | Method name | Description |
---|---|---|
public | __construct | Class constructor. |
public | authorise | Method to check object authorization against an access control object and optionally an access extension object. |
public | getActive | Get menu item by id. |
public | getDefault | Get menu item by id. |
public | getItem | Get menu item by id. |
public | getItems | Gets menu items by attribute. |
public | getMenu | Getter for the menu array. |
public | getParams | Gets the parameter object for a certain menu item. |
public | load | Loads the menu items. |
public | setActive | Set the default item by id. |
public | setDefault | Set the default item by id and language code. |
public static | getInstance | Returns a object. |
- Defined in libraries/joomla/application/menu.php
- Extends JObject
Importing[edit]
jimport( 'joomla.application.menu' );
See also[edit]
- JMenu source code on BitBucket
- Subpackage Application
- Other versions of JMenu
Template:SeeAlso:JMenu [Edit See Also]
User contributed notes[edit]
<CodeExamplesForm />