Пример #1
0
 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();
 }
Пример #2
0
 protected function __construct($params = array())
 {
     parent::__construct($params);
     $this->_loadObj();
 }