/** * Check values before store method (override if needed) * * @return boolean TRUE if the object is safe for saving */ function check() { if (!$this->title) { $this->_error = CBTxt::T('Title missing!'); return false; } return parent::check(); }