API17

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>
{{Description:JMenu}}
 
===Defined in===
 
libraries/joomla/application/menu.php
 
* see source code in [[jplatform:application/menu.php|BitBucket]]
 
===Subpackage===
 
[[Subpackage Application/11.1|Application]]
 
===Extends===
 
[[JObject/11.1|JObject]]
 
===Extended by===
 
 
===Methods===
 
===Methods===
 
{| class="wikitable sortable"
 
{| class="wikitable sortable"
 
|-
 
|-
 +
!Visibility
 
!Method name
 
!Method name
 
!Description
 
!Description
 
|-
 
|-
|[[JMenu::__construct/11.1|__construct]]
+
|public
 +
|[[API17:JMenu::__construct|__construct]]
 
|Class constructor.  
 
|Class constructor.  
 
|-
 
|-
|[[JMenu::authorise/11.1|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/11.1|getActive]]
+
|public
 +
|[[API17:JMenu::getActive|getActive]]
 
|Get menu item by id.  
 
|Get menu item by id.  
 
|-
 
|-
|[[JMenu::getDefault/11.1|getDefault]]
+
|public
 +
|[[API17:JMenu::getDefault|getDefault]]
 
|Get menu item by id.  
 
|Get menu item by id.  
 
|-
 
|-
|[[JMenu::getItem/11.1|getItem]]
+
|public
 +
|[[API17:JMenu::getItem|getItem]]
 
|Get menu item by id.  
 
|Get menu item by id.  
 
|-
 
|-
|[[JMenu::getItems/11.1|getItems]]
+
|public
 +
|[[API17:JMenu::getItems|getItems]]
 
|Gets menu items by attribute.  
 
|Gets menu items by attribute.  
 
|-
 
|-
|[[JMenu::getMenu/11.1|getMenu]]
+
|public
 +
|[[API17:JMenu::getMenu|getMenu]]
 
|Getter for the menu array.  
 
|Getter for the menu array.  
 
|-
 
|-
|[[JMenu::getParams/11.1|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/11.1|load]]
+
|public
 +
|[[API17:JMenu::load|load]]
 
|Loads the menu items.  
 
|Loads the menu items.  
 
|-
 
|-
|[[JMenu::setActive/11.1|setActive]]
+
|public
 +
|[[API17:JMenu::setActive|setActive]]
 
|Set the default item by id.  
 
|Set the default item by id.  
 
|-
 
|-
|[[JMenu::setDefault/11.1|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/11.1|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 in [[jplatform:application/menu.php|BitBucket]]
+
* {{JVer|11.1}} '''JMenu source code''' on [[jplatform:application/menu.php|BitBucket]]
* [[JMenu|Other versions of this class]]
+
* {{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>
===Examples===
+
===User contributed notes===
 
<CodeExamplesForm />
 
<CodeExamplesForm />
 
<dpl>
 
<dpl>
Line 72: Line 82:
 
category=ClassExample
 
category=ClassExample
 
include=*
 
include=*
 +
namespace=CodeExample
 
format= ,,,
 
format= ,,,
 
</dpl>
 
</dpl>
<noinclude>[[Category:Platform]][[Category:Platform 11.1]][[Category:JMenu]]</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.

Joomla 11.1 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]

Template:SeeAlso:JMenu [Edit See Also]

User contributed notes[edit]

<CodeExamplesForm />