JUser/getParam
From Joomla! Documentation
< API16:JUserRevision as of 17:43, 22 March 2010 by Doxiki (talk | contribs) (New page: ===Description===
Method to get a parameter value
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki>
...)
Revision as of 17:43, 22 March 2010 by Doxiki (talk | contribs) (New page: ===Description===
Method to get a parameter value
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki>
...)
The "API16" 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]
Method to get a parameter value
Template:Description:JUser/getParam
Syntax[edit]
getParam($key, $default=null)
Parameter Name | Default Value | Description |
---|---|---|
$key | $key Parameter key | |
$default | null | $default Parameter default value |
Returns[edit]
mixed The value or the default if it did not exist
Defined in[edit]
libraries/joomla/user/user.php
Importing[edit]
jimport( 'joomla.user.user' );
Source Body[edit]
function getParam($key, $default = null)
{
return $this->_params->get($key, $default);
}
[Edit See Also] Template:SeeAlso:JUser/getParam
Examples[edit]
<CodeExamplesForm />