JMenu/getParams
From Joomla! Documentation
< API15:JMenuRevision as of 16:53, 22 March 2010 by Doxiki (talk | contribs) (New page: ===Description===
Gets the parameter object for a certain menu item
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>Edit Descripton...)
Revision as of 16:53, 22 March 2010 by Doxiki (talk | contribs) (New page: ===Description===
Gets the parameter object for a certain menu item
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>Edit Descripton...)
The "API15" 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.
Description[edit]
Gets the parameter object for a certain menu item
Template:Description:JMenu/getParams
Syntax[edit]
getParams($id)
Parameter Name | Default Value | Description |
---|---|---|
$id | The item id |
Returns[edit]
object A JParameter object
Defined in[edit]
libraries/joomla/application/menu.php
Importing[edit]
jimport( 'joomla.application.menu' );
Source Body[edit]
public function getParams($id)
{
$ini = '';
if ($menu = &$this->getItem($id)) {
$ini = $menu->params;
}
return new JParameter($ini);
}
[Edit See Also] Template:SeeAlso:JMenu/getParams
Examples[edit]
<CodeExamplesForm />