[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/libraries/src/MVC/Model/ -> StateBehaviorTrait.php (summary)

Joomla! Content Management System

Copyright: (C) 2019 Open Source Matters, Inc.
License: GNU General Public License version 2 or later; see LICENSE
File Size: 102 lines (3 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 3 functions

  getState()
  setState()
  populateState()

Functions
Functions that are not part of a class:

getState($property = null, $default = null)   X-Ref
Method to get state variables.

param: string  $property  Optional parameter name
param: mixed   $default   Optional default value
return: mixed  The property where specified, the state object where omitted

setState($property, $value = null)   X-Ref
Method to set state variables.

param: string  $property  The name of the property
param: mixed   $value     The value of the property to set or null
return: mixed  The previous value of the property or null if not set

populateState()   X-Ref
Method to auto-populate the state.

This method should only be called once per instantiation and is designed
to be called on the first call to the getState() method unless the
configuration flag to ignore the request is set.

return: void



Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer