JMenu/1.5

From Joomla! Documentation
< JMenu(Difference between revisions)
Jump to: navigation, search
(Bulk upload by Doxiki2)
 
(Layout updates)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
 +
=={{JVer|1.5}} 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
 
===Subpackage===
 
[[Subpackage Application/1.5|Application]]
 
===Extends===
 
[[JObject/1.5|JObject]]
 
===Extended by===
 
 
===Methods===
 
===Methods===
 
{| class="wikitable sortable"
 
{| class="wikitable sortable"
 
|-
 
|-
 +
!Visibility
 
!Method name
 
!Method name
 
!Description
 
!Description
 
|-
 
|-
 +
|public
 
|[[JMenu::__construct/1.5|__construct]]
 
|[[JMenu::__construct/1.5|__construct]]
 
|Class constructor.  
 
|Class constructor.  
 
|-
 
|-
 +
|public
 
|[[JMenu::authorize/1.5|authorize]]
 
|[[JMenu::authorize/1.5|authorize]]
 
|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 
 
|[[JMenu::getActive/1.5|getActive]]
 
|[[JMenu::getActive/1.5|getActive]]
 
|Get menu item by id.  
 
|Get menu item by id.  
 
|-
 
|-
 +
|public 
 
|[[JMenu::getDefault/1.5|getDefault]]
 
|[[JMenu::getDefault/1.5|getDefault]]
 
|Get menu item by id.  
 
|Get menu item by id.  
 
|-
 
|-
 +
|public 
 
|[[JMenu::getInstance/1.5|getInstance]]
 
|[[JMenu::getInstance/1.5|getInstance]]
 
|Returns a reference to a  object.  
 
|Returns a reference to a  object.  
 
|-
 
|-
 +
|public 
 
|[[JMenu::getItem/1.5|getItem]]
 
|[[JMenu::getItem/1.5|getItem]]
 
|Get menu item by id.  
 
|Get menu item by id.  
 
|-
 
|-
 +
|public
 
|[[JMenu::getItems/1.5|getItems]]
 
|[[JMenu::getItems/1.5|getItems]]
 
|Gets menu items by attribute.  
 
|Gets menu items by attribute.  
 
|-
 
|-
 +
|public
 
|[[JMenu::getMenu/1.5|getMenu]]
 
|[[JMenu::getMenu/1.5|getMenu]]
 
|Getter for the menu array.  
 
|Getter for the menu array.  
 
|-
 
|-
 +
|public 
 
|[[JMenu::getParams/1.5|getParams]]
 
|[[JMenu::getParams/1.5|getParams]]
 
|Gets the parameter object for a certain menu item.  
 
|Gets the parameter object for a certain menu item.  
 
|-
 
|-
 +
|public
 
|[[JMenu::load/1.5|load]]
 
|[[JMenu::load/1.5|load]]
 
|Loads the menu items.  
 
|Loads the menu items.  
 
|-
 
|-
 +
|public 
 
|[[JMenu::setActive/1.5|setActive]]
 
|[[JMenu::setActive/1.5|setActive]]
 
|Set the default item by id.  
 
|Set the default item by id.  
 
|-
 
|-
 +
|public
 
|[[JMenu::setDefault/1.5|setDefault]]
 
|[[JMenu::setDefault/1.5|setDefault]]
 
|Set the default item by id.  
 
|Set the default item by id.  
 
|-
 
|-
 
|}
 
|}
 +
* '''Defined in''' libraries/joomla/application/menu.php
 +
* '''Extends''' [[JObject/1.5|JObject]]
 
===Importing===
 
===Importing===
 
<source lang="php">jimport( 'joomla.application.menu' );</source>
 
<source lang="php">jimport( 'joomla.application.menu' );</source>
 
===See also===
 
===See also===
 +
* {{JVer|1.5}} '''JMenu''' on [http://api.joomla.org/Joomla-Framework/Application/JMenu.html api.joomla.org]
 +
* {{JVer|1.5}} '''JMenu source code''' on [[jframework15:application/menu.php|JoomlaCode]]
 +
* {{JVer|1.5}} Subpackage [[Subpackage Application/1.5|Application]]
 +
* [[JMenu|Other versions of 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>
{{SeeAlso:JMenu}}
+
===User contributed notes===
* [[JMenu|Other versions of this class]]
+
* [http://api.joomla.org/Joomla-Framework/Application/JMenu.html JMenu on api.joomla.org]
+
===Examples===
+
 
<CodeExamplesForm />
 
<CodeExamplesForm />
 
<dpl>
 
<dpl>
Line 71: Line 83:
 
category=ClassExample
 
category=ClassExample
 
include=*
 
include=*
 +
namespace=CodeExample
 
format= ,,,
 
format= ,,,
 
</dpl>
 
</dpl>
 
<noinclude>[[Category:Framework]][[Category:Framework 1.5]][[Category:JMenu]]</noinclude>
 
<noinclude>[[Category:Framework]][[Category:Framework 1.5]][[Category:JMenu]]</noinclude>

Revision as of 18:11, 25 April 2011

Joomla 1.5 JMenu

Description

Description:JMenu [Edit Descripton]

Methods

Visibility Method name Description
public __construct Class constructor.
public authorize 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 getInstance Returns a reference to a object.
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.
  • Defined in libraries/joomla/application/menu.php
  • Extends JObject

Importing

jimport( 'joomla.application.menu' );

See also

SeeAlso:JMenu [Edit See Also]

User contributed notes

<CodeExamplesForm />


Personal tools
Namespaces

Variants
Actions
Navigation
Joomla! Sites
Toolbox