API17:JModel::getState
From Joomla! Documentation
(Difference between revisions)
(Bulk upload by Doxiki2) |
(Layout updates) |
||
| Line 12: | Line 12: | ||
===Synopsis=== | ===Synopsis=== | ||
<source lang="php"> | <source lang="php"> | ||
| − | public | + | public JModel::getState ($property=null, $default=null) |
</source> | </source> | ||
{| class="wikitable" | {| class="wikitable" | ||
| Line 35: | Line 35: | ||
object The property where specified, the state object where omitted | object The property where specified, the state object where omitted | ||
===Defined in=== | ===Defined in=== | ||
| − | libraries/joomla/application/component/model.php | + | libraries/joomla/application/component/model.php (line 346) |
| + | * see source code in [[jplatform:application/component/model.php#cl-346|BitBucket]] | ||
===Referenced by=== | ===Referenced by=== | ||
| − | * [[JControllerForm | + | * [[JControllerForm::save/11.1|JControllerForm::save]] |
===See also=== | ===See also=== | ||
<span class="editsection" style="font-size:76%;"> | <span class="editsection" style="font-size:76%;"> | ||
Revision as of 20:58, 23 April 2011
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.
JModel::getState
Description
Method to get model state variables.
Description:JModel::getState [Edit Descripton]
Since
Synopsis
public JModel::getState ($property=null, $default=null)
| Parameter | Type | Default | Description |
|---|---|---|---|
| $property | string | null | Optional parameter name |
| $default | mixed | null | Optional default value |
Returns
object The property where specified, the state object where omitted
Defined in
libraries/joomla/application/component/model.php (line 346)
- see source code in BitBucket
Referenced by
See also
Examples
<CodeExamplesForm />
