API17

Difference between revisions of "JMenu"

From Joomla! Documentation

m (→‎User contributed notes: moving preparation)
m (moving preparation)
Line 14: Line 14:
 
|-
 
|-
 
|public  
 
|public  
|[[JMenu::__construct/11.1|__construct]]
+
|[[API17:JMenu::__construct|__construct]]
 
|Class constructor.  
 
|Class constructor.  
 
|-
 
|-
 
|public  
 
|public  
|[[JMenu::authorise/11.1|authorise]]
+
|[[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.  
 
|-
 
|-
 
|public  
 
|public  
|[[JMenu::getActive/11.1|getActive]]
+
|[[API17:JMenu::getActive|getActive]]
 
|Get menu item by id.  
 
|Get menu item by id.  
 
|-
 
|-
 
|public  
 
|public  
|[[JMenu::getDefault/11.1|getDefault]]
+
|[[API17:JMenu::getDefault|getDefault]]
 
|Get menu item by id.  
 
|Get menu item by id.  
 
|-
 
|-
 
|public  
 
|public  
|[[JMenu::getItem/11.1|getItem]]
+
|[[API17:JMenu::getItem|getItem]]
 
|Get menu item by id.  
 
|Get menu item by id.  
 
|-
 
|-
 
|public  
 
|public  
|[[JMenu::getItems/11.1|getItems]]
+
|[[API17:JMenu::getItems|getItems]]
 
|Gets menu items by attribute.  
 
|Gets menu items by attribute.  
 
|-
 
|-
 
|public  
 
|public  
|[[JMenu::getMenu/11.1|getMenu]]
+
|[[API17:JMenu::getMenu|getMenu]]
 
|Getter for the menu array.  
 
|Getter for the menu array.  
 
|-
 
|-
 
|public  
 
|public  
|[[JMenu::getParams/11.1|getParams]]
+
|[[API17:JMenu::getParams|getParams]]
 
|Gets the parameter object for a certain menu item.  
 
|Gets the parameter object for a certain menu item.  
 
|-
 
|-
 
|public  
 
|public  
|[[JMenu::load/11.1|load]]
+
|[[API17:JMenu::load|load]]
 
|Loads the menu items.  
 
|Loads the menu items.  
 
|-
 
|-
 
|public  
 
|public  
|[[JMenu::setActive/11.1|setActive]]
+
|[[API17:JMenu::setActive|setActive]]
 
|Set the default item by id.  
 
|Set the default item by id.  
 
|-
 
|-
 
|public  
 
|public  
|[[JMenu::setDefault/11.1|setDefault]]
+
|[[API17:JMenu::setDefault|setDefault]]
 
|Set the default item by id and language code.  
 
|Set the default item by id and language code.  
 
|-
 
|-
 
|public static  
 
|public static  
|[[JMenu::getInstance/11.1|getInstance]]
+
|[[API17:JMenu::getInstance|getInstance]]
 
|Returns a  object.  
 
|Returns a  object.  
 
|-
 
|-
 
|}
 
|}
 
* '''Defined in''' libraries/joomla/application/menu.php
 
* '''Defined in''' libraries/joomla/application/menu.php
* '''Extends''' [[JObject/11.1|JObject]]
+
* '''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===
 
* {{JVer|11.1}} '''JMenu source code''' on [[jplatform:application/menu.php|BitBucket]]
 
* {{JVer|11.1}} '''JMenu source code''' on [[jplatform:application/menu.php|BitBucket]]
* {{JVer|11.1}} Subpackage [[Subpackage Application/11.1|Application]]
+
* {{JVer|11.1}} Subpackage [[API17:Subpackage Application|Application]]
* [[JMenu|Other versions of JMenu]]
+
* [[API17:JMenu|Other versions of JMenu]]
 
{{SeeAlso:JMenu}}
 
{{SeeAlso:JMenu}}
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">

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 />