StatefulModelInterface
Interface for a stateful model.
since |
4.0.0 |
---|---|
package |
Joomla CMS |
Methods
getState
Method to get model state variables.
getState(string property = null, mixed default = null) : mixed
since |
4.0.0 |
---|
Arguments
- property
string
Optional parameter name- default
mixed
Optional default value
Response
mixed
The property where specified, the state object where omitted
setState
Method to set model state variables.
setState(string property, mixed value = null) : mixed
since |
4.0.0 |
---|
Arguments
- property
string
The name of the property.- value
mixed
The value of the property to set or null.
Response
mixed
The previous value of the property or null if not set.