/** * Reset the row data using the defaults * * @return boolean If successfull return TRUE, otherwise FALSE */ public function reset() { $result = parent::reset(); if ($this->isConnected()) { if ($this->_data = $this->getTable()->getDefaults()) { $result = true; } } return $result; }
/** * Reset the row data using the defaults * * @return boolean If successfull return TRUE, otherwise FALSE */ public function reset() { $result = parent::reset(); if ($this->isConnected()) { // TODO: Get defaults from the row's field definition /* if($this->_data = $this->getDefaults()) { $result = true; } */ $result = true; } return $result; }