/** * Method to update the parameters in the database, and re-initialize the object. * * @access public * @author Jonathan Abrahams * @return condition Returns this condition object, and retrieves the parameters from the database. * @version V0.1 */ function update() { // Package condition properties. $conditionType = array(); $conditionType['classname'] = $this->_conditionTypeClassName; $conditionType['modulename'] = $this->_conditionTypeModuleName; // Update the parameters parent::update('id', $this->_id, $conditionType); return $this; }
/** * Method to update the parameters in the database, and re-initialize the object. * * @access public * @author Jonathan Abrahams * @return condition Returns this condition object, and retrieves the parameters from the database. * @version V0.1 */ function update($params) { // Set dbData and unPack params $this->setProperties($params); parent::update('id', $this->_id, $this->_dbData); return $this; }