FOF30\Model\Model::savestate PHP Метод

savestate() публичный Метод

Sets the model state auto-save status. By default the model is set up to save its state to the session.
public savestate ( boolean $newState ) : static
$newState boolean True to save the state, false to not save it.
Результат static
    public function savestate($newState)
    {
        $this->_savestate = $newState ? true : false;
        return $this;
    }

Usage Example

Пример #1
0
 public function savestate($newState)
 {
     $this->methodCounter['savestate']++;
     return parent::savestate($newState);
 }