JApplication/getMenu: Difference between revisions
From Joomla! Documentation
New page: ===Description===
Returns the application JPathway object.
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>Edit Descripton<now... |
m removing red link to edit, no existant pages |
||
| Line 3: | Line 3: | ||
<span class="editsection" style="font-size:76%;"> | <span class="editsection" style="font-size:76%;"> | ||
<nowiki>[< | <nowiki>[<! removed edit link to red link >]</nowiki> | ||
</span> | </span> | ||
<! removed transcluded page call, red link never existed > | |||
===Syntax=== | ===Syntax=== | ||
| Line 52: | Line 52: | ||
<span class="editsection" style="font-size:76%;"> | <span class="editsection" style="font-size:76%;"> | ||
<nowiki>[< | <nowiki>[<! removed edit link to red link >]</nowiki> | ||
</span> | </span> | ||
<! removed transcluded page call, red link never existed > | |||
===Examples=== | ===Examples=== | ||
| Line 67: | Line 67: | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
[[Category:Archived pages API16]] | |||
Revision as of 01:57, 13 May 2013
Description
Returns the application JPathway object.
[<! removed edit link to red link >]
<! removed transcluded page call, red link never existed >
Syntax
getMenu($name=null, $options=array())
| Parameter Name | Default Value | Description |
|---|---|---|
| $name | null | $options An optional associative array of configuration settings. |
| $options | array() |
Returns
object .
Defined in
libraries/joomla/application/application.php
Importing
jimport( 'joomla.application.application' );
Source Body
public function getMenu($name = null, $options = array())
{
if (!isset($name)) {
$name = $this->_name;
}
jimport('joomla.application.menu');
$menu = &JMenu::getInstance($name, $options);
if (JError::isError($menu)) {
return null;
}
return $menu;
}
[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >
Examples
<CodeExamplesForm />