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
파일: ModelStub.php 프로젝트: Joal01/fof
 public function savestate($newState)
 {
     $this->methodCounter['savestate']++;
     return parent::savestate($newState);
 }