Difference between revisions of "JUser::getParam"
From Joomla! Documentation
(Layout updates) |
(Updated to r1448:247ba8d88526) |
||
Line 8: | Line 8: | ||
<nowiki>[</nowiki>[[Description:JUser::getParam|Edit Descripton]]<nowiki>]</nowiki> | <nowiki>[</nowiki>[[Description:JUser::getParam|Edit Descripton]]<nowiki>]</nowiki> | ||
</span> | </span> | ||
− | |||
− | |||
− | |||
<source lang="php"> | <source lang="php"> | ||
− | public | + | public function getParam ( |
+ | $key | ||
+ | $default=null | ||
+ | ) | ||
</source> | </source> | ||
{| class="wikitable" | {| class="wikitable" | ||
Line 32: | Line 32: | ||
|- | |- | ||
|} | |} | ||
− | + | * '''Returns''' mixed The value or the default if it did not exist | |
− | mixed The value or the default if it did not exist | + | * '''Defined''' on line 226 of libraries/joomla/user/user.php |
− | + | * '''Since''' {{JVer|11.1 }} | |
− | libraries/joomla/user/user.php | ||
− | * | ||
− | |||
===See also=== | ===See also=== | ||
+ | * {{JVer|11.1}} '''JUser::getParam source code''' on [[jplatform:user/user.php#cl-218|BitBucket]] | ||
+ | * {{JVer|11.1}} Class [[JUser/11.1|JUser]] | ||
+ | * {{JVer|11.1}} Subpackage [[Subpackage_User/11.1|User]] | ||
+ | * [[JUser::getParam|Other versions of JUser::getParam]] | ||
+ | {{SeeAlso:JUser::getParam}} | ||
<span class="editsection" style="font-size:76%;"> | <span class="editsection" style="font-size:76%;"> | ||
<nowiki>[</nowiki>[[SeeAlso:JUser::getParam|Edit See Also]]<nowiki>]</nowiki> | <nowiki>[</nowiki>[[SeeAlso:JUser::getParam|Edit See Also]]<nowiki>]</nowiki> | ||
</span> | </span> | ||
− | + | ===User contributed notes=== | |
− | |||
− | |||
− | === | ||
<CodeExamplesForm /> | <CodeExamplesForm /> | ||
<dpl> | <dpl> | ||
Line 53: | Line 52: | ||
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
+ | namespace=CodeExample | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
<noinclude>[[Category:JUser]][[Category:JUser::getParam]]</noinclude> | <noinclude>[[Category:JUser]][[Category:JUser::getParam]]</noinclude> |
Revision as of 21:55, 27 April 2011
The "API17" 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.
JUser::getParam[edit]
Description[edit]
Method to get a parameter value.
Template:Description:JUser::getParam [Edit Descripton]
public function getParam (
$key
$default=null
)
Parameter | Type | Default | Description |
---|---|---|---|
$key | string | Parameter key | |
$default | mixed | null | Parameter default value |
- Returns mixed The value or the default if it did not exist
- Defined on line 226 of libraries/joomla/user/user.php
- Since
See also[edit]
- JUser::getParam source code on BitBucket
- Class JUser
- Subpackage User
- Other versions of JUser::getParam
Template:SeeAlso:JUser::getParam [Edit See Also]
User contributed notes[edit]
<CodeExamplesForm />