StatefulModelInterface

Interface for a stateful model.

since

4.0.0

package

Joomla CMS

Methods

getState

Method to get model state variables.

getState( property = null,  default = null) : 
since

4.0.0

Arguments

property

stringOptional parameter name

default

mixedOptional default value

Response

mixedThe property where specified, the state object where omitted

setState

Method to set model state variables.

setState( property,  value = null) : 
since

4.0.0

Arguments

property

stringThe name of the property.

value

mixedThe value of the property to set or null.

Response

mixedThe previous value of the property or null if not set.