FOF30\Model\Model::clearState PHP Method

clearState() public method

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().
public clearState ( ) : static
return static
    public function clearState()
    {
        $this->state = new \stdClass();
        return $this;
    }

Usage Example

Example #1
0
 public function clearState()
 {
     $this->methodCounter['clearState']++;
     return parent::clearState();
 }