function save()
 {
     if (!$this->ok) {
         return false;
     }
     $storedParams = $this->_getStoredParams();
     if (!ObjectPersistent::stIsValidParamsValues(get_class($this), $storedParams)) {
         // TODO warning y crear error
         return false;
     }
     return $this->_save();
 }
Example #2
0
 protected function __construct($params = array())
 {
     parent::__construct($params);
     $this->_loadObj();
 }