API16

JModel/setState: Difference between revisions

From Joomla! Documentation

Doxiki (talk | contribs)
New page: ===Description=== Method to set model state variables <span class="editsection" style="font-size:76%;"> <nowiki>[</nowiki>Edit Descripton<nowiki>]</now...
 
m clean up
Line 2: Line 2:
Method to set model state variables
Method to set model state variables


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


{{Description:JModel/setState}}
 
{{subst:Description:JModel/setState}}


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


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


===Examples===
===Examples===

Revision as of 14:15, 24 March 2017

Description

Method to set model state variables


{{subst:Description:JModel/setState}}

Syntax

setState($property, $value=null)
Parameter Name Default Value Description
$property The name of the property
$value null The value of the property to set

Returns

mixed The previous value of the property

Defined in

libraries/joomla/application/component/model.php

Importing

jimport( 'joomla.application.component.model' );

Source Body

public function setState($property, $value=null)
{
        return $this->_state->set($property, $value);
}


{{subst:SeeAlso:JModel/setState}}

Examples

<CodeExamplesForm />