FOF30\Model\Model::populateSavestate PHP 메소드

populateSavestate() 공개 메소드

Public setter for the _savestate variable. Set it to true to save the state of the Model in the session.
public populateSavestate ( ) : static
리턴 static
    public function populateSavestate()
    {
        if (is_null($this->_savestate)) {
            $savestate = $this->input->getInt('savestate', -999);
            if ($savestate == -999) {
                $savestate = true;
            }
            $this->savestate($savestate);
        }
    }