Method |
Description |
|
__call ( string $name, mixed $arguments ) : static |
Magic caller; allows to use the name of model state keys as methods to
set their values. |
|
__construct ( Container $container, array $config = [] ) |
Public class constructor |
|
__get ( string $name ) : static |
Magic getter; allows to use the name of model state keys as properties. Also handles magic properties:
$this->input mapped to $this->container->input |
|
__set ( string $name, mixed $value ) : static |
Magic setter; allows to use the name of model state keys as properties |
|
clearState ( ) : static |
Clears the model state, but doesn't touch the internal lists of records,
record tables or record id variables. To clear these values, please use
reset(). |
|
getClone ( ) |
Clones the model object and returns the clone |
|
getContainer ( ) : Container |
Returns a reference to the model's container |
|
getHash ( ) : string |
Returns a unique hash for each view, used to prefix the state variables
to allow us to retrieve them from the state later on. |
|
getIgnoreRequest ( ) : boolean |
Gets the ignore request flag. When false, getState() will try to populate state variables not already set from
same-named state variables in the request. |
|
getName ( ) : string |
Method to get the model name |
|
getState ( string $key = null, mixed $default = null, string $filter_type = 'raw' ) : mixed |
Get a filtered state variable |
|
populateSavestate ( ) : static |
Public setter for the _savestate variable. Set it to true to save the state
of the Model in the session. |
|
savestate ( boolean $newState ) : static |
Sets the model state auto-save status. By default the model is set up to
save its state to the session. |
|
setIgnoreRequest ( boolean $ignoreRequest ) |
Sets the ignore request flag. When false, getState() will try to populate state variables not already set from
same-named state variables in the request. |
|
setState ( string $property, mixed $value = null ) : mixed |
Method to set model state variables |
|
tmpInstance ( ) |
Returns a temporary instance of the model. Please note that this returns a _clone_ of the model object, not the
original object. The new object is set up to not save its stats, ignore the request when getting state variables
and comes with an empty state. |
|