JMenu/getParams: Difference between revisions
From Joomla! Documentation
New page: ===Description===
Gets the parameter object for a certain menu item
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>Edit Descripton... |
m clean up |
||
| Line 2: | Line 2: | ||
Gets the parameter object for a certain menu item | Gets the parameter object for a certain menu item | ||
{{Description:JMenu/getParams}} | |||
{{subst:Description:JMenu/getParams}} | |||
===Syntax=== | ===Syntax=== | ||
| Line 43: | Line 41: | ||
</source> | </source> | ||
{{subst:SeeAlso:JMenu/getParams}} | |||
{{SeeAlso:JMenu/getParams}} | |||
===Examples=== | ===Examples=== | ||
Revision as of 14:14, 24 March 2017
Description
Gets the parameter object for a certain menu item
{{subst:Description:JMenu/getParams}}
Syntax
getParams($id)
| Parameter Name | Default Value | Description |
|---|---|---|
| $id | The item id |
Returns
object A object
Defined in
libraries/joomla/application/menu.php
Importing
jimport( 'joomla.application.menu' );
Source Body
public function getParams($id)
{
$ini = '';
if ($menu = &$this->getItem($id)) {
$ini = $menu->params;
}
return new JParameter($ini);
}
{{subst:SeeAlso:JMenu/getParams}}
Examples
<CodeExamplesForm />