Actions

API15

Difference between revisions of "JMenu"

From Joomla! Documentation

(New page: <span class="editsection" style="font-size:76%;"> <nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki> </span> {{Description:JMenu}} ===Defined in=== libraries...)
 
Line 14: Line 14:
 
|[[API15:JMenu/__construct|__construct]]
 
|[[API15:JMenu/__construct|__construct]]
 
|Class constructor
 
|Class constructor
 +
|-
 +
|[[API15:JMenu/getInstance|getInstance]]
 +
|Returns a reference to a JMenu object
 
|-
 
|-
 
|[[API15:JMenu/getItem|getItem]]
 
|[[API15:JMenu/getItem|getItem]]
Line 39: Line 42:
 
|Getter for the menu array
 
|Getter for the menu array
 
|-
 
|-
|[[API15:JMenu/authorise|authorise]]
+
|[[API15:JMenu/authorize|authorize]]
 
|Method to check JMenu object authorization against an access control object and optionally an access extension object
 
|Method to check JMenu object authorization against an access control object and optionally an access extension object
 
|-
 
|-
 
|[[API15:JMenu/load|load]]
 
|[[API15:JMenu/load|load]]
 
|Loads the menu items
 
|Loads the menu items
|-
 
|[[API15:JMenu/getInstance|getInstance]]
 
|Returns a JMenu object
 
 
|}
 
|}
 
===Importing===
 
===Importing===

Revision as of 17:10, 22 March 2010

Replacement filing cabinet.png
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.

[Edit Descripton] Description:JMenu

Contents

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' );

[Edit See Also] SeeAlso:JMenu

Examples

<CodeExamplesForm />