public function __construct($aOptions = array()) { parent::__construct(); assert(class_exists('Spockz_Session_Model')); $this->options = array_merge($this->options, $aOptions); if ($this->read()) { $this->update(); } else { $this->create(); } }