JMenu/getMenu: Difference between revisions
From Joomla! Documentation
New page: ===Description===
Getter for the menu array
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki>
</span... |
m preparing for archive only |
||
(One intermediate revision by the same user not shown) | |||
Line 2: | Line 2: | ||
Getter for the menu array | Getter for the menu array | ||
===Syntax=== | ===Syntax=== | ||
Line 28: | Line 26: | ||
</source> | </source> | ||
===Examples=== | ===Examples=== | ||
=== Code Examples === | |||
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=getMenu | category=getMenu | ||
category=JMenu | category=JMenu | ||
namespace=CodeExample | |||
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> |
Latest revision as of 01:54, 25 March 2017
Description
Getter for the menu array
Syntax
getMenu()
Returns
array
Defined in
libraries/joomla/application/menu.php
Importing
jimport( 'joomla.application.menu' );
Source Body
public function getMenu()
{
return $this->_items;
}
Examples
Code Examples