API16

JUser/defParam: Difference between revisions

From Joomla! Documentation

Doxiki (talk | contribs)
New page: ===Description=== Method to set a default parameter if it does not exist <span class="editsection" style="font-size:76%;"> <nowiki>[</nowiki>[[Description:JUser/defParam|Edit Descript...
 
m preparing for archive only
 
(One intermediate revision by the same user not shown)
Line 2: Line 2:
Method to set a default parameter if it does not exist
Method to set a default parameter if it does not exist


<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>[[Description:JUser/defParam|Edit Descripton]]<nowiki>]</nowiki>
</span>


{{Description:JUser/defParam}}
 
 


===Syntax===
===Syntax===
Line 42: Line 40:
</source>
</source>


<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JUser/defParam|Edit See Also]]<nowiki>]</nowiki>
 
</span>
{{SeeAlso:JUser/defParam}}


===Examples===
===Examples===
<CodeExamplesForm />
=== Code Examples ===
<dpl>
<dpl>
  noresultsheader=\n
  noresultsheader=\n
  category=defParam
  category=defParam
  category=JUser
  category=JUser
  category=CodeExample
  namespace=CodeExample
  category=MethodExample
  category=MethodExample
  include=*
  include=*
  format= ,,,
  format= ,,,
</dpl>
</dpl>

Latest revision as of 02:15, 25 March 2017

Description

Method to set a default parameter if it does not exist



Syntax

defParam($key, $value)
Parameter Name Default Value Description
$key $key Parameter key
$value $value Parameter value

Returns

mixed Set parameter value

Defined in

libraries/joomla/user/user.php

Importing

jimport( 'joomla.user.user' );

Source Body

function defParam($key, $value)
{
        return $this->_params->def($key, $value);
}



Examples

Code Examples