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(); }
protected function __construct($params = array()) { parent::__construct($params); $this->_loadObj(); }