API17

Difference between revisions of "JModel::setState"

From Joomla! Documentation

(Layout updates)
m (preparing for archive only)
 
(5 intermediate revisions by 2 users not shown)
Line 4: Line 4:
 
Method to set model state variables.  
 
Method to set model state variables.  
  
{{Description:JModel::setState}}
+
 
<span class="editsection" style="font-size:76%;">
+
 
<nowiki>[</nowiki>[[Description:JModel::setState|Edit Descripton]]<nowiki>]</nowiki>
 
</span>
 
===Since===
 
{{JVer|11.1 }}
 
===Synopsis===
 
 
<source lang="php">
 
<source lang="php">
public JModel::setState ($property, $value=null)
+
public function setState (
 +
        $property
 +
        $value=null
 +
)
 
</source>
 
</source>
 
{| class="wikitable"
 
{| class="wikitable"
Line 32: Line 30:
 
|-
 
|-
 
|}
 
|}
===Returns===
+
* '''Returns''' mixed The previous value of the property
mixed The previous value of the property
+
* '''Defined''' on line 422 of libraries/joomla/application/component/model.php
===Defined in===
+
* '''Since''' {{JVer|11.1 }}
libraries/joomla/application/component/model.php (line 422)
 
* see source code in [[jplatform:application/component/model.php#cl-422|BitBucket]]
 
===Referenced by===
 
 
===See also===
 
===See also===
<span class="editsection" style="font-size:76%;">
+
* {{JVer|11.1}} '''JModel::setState source code''' on [[jplatform:application/component/model.php#cl-414|BitBucket]]
<nowiki>[</nowiki>[[SeeAlso:JModel::setState|Edit See Also]]<nowiki>]</nowiki>
+
* {{JVer|11.1}} Class [[API17:JModel|JModel]]
</span>
+
* {{JVer|11.1}} Subpackage [[API17:Subpackage_Application|Application]]
* [[JModel/11.1|JModel]]
+
* [[API17:JModel::setState|Other versions of JModel::setState]]
* [[JModel::setState|Other versions of this method]]
+
 
{{SeeAlso:JModel::setState}}
+
 
===Examples===
+
===User contributed notes===
<CodeExamplesForm />
+
=== Code Examples ===
 
<dpl>
 
<dpl>
 
noresultsheader=\n
 
noresultsheader=\n
 
category=JModel::setState
 
category=JModel::setState
category=CodeExample
+
namespace=CodeExample
 
category=MethodExample
 
category=MethodExample
 
include=*
 
include=*
 +
namespace=CodeExample
 
format= ,,,
 
format= ,,,
 
</dpl>
 
</dpl>
<noinclude>[[Category:JModel]][[Category:JModel::setState]]</noinclude>
+
<noinclude>[[Category:Platform 11.1]][[Category:Archived pages API17]]</noinclude>

Latest revision as of 22:27, 24 March 2017

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.

Joomla 11.1 JModel::setState[edit]

Description[edit]

Method to set model state variables.


public function setState (
        $property
        $value=null
)
Parameter Type Default Description
$property string The name of the property
$value mixed null The value of the property to set
  • Returns mixed The previous value of the property
  • Defined on line 422 of libraries/joomla/application/component/model.php
  • Since Joomla 11.1

See also[edit]


User contributed notes[edit]

Code Examples[edit]