/** * purpose: to commit the changes made to the object with * the database. * @return (bool) */ function save() { $this->data['last_change'] = db_Wrap::getTimestampTz(); return parent::save("sotf_stations", "station"); }
/** saves basic object data into database */ function save() { $this->data['last_change'] = db_Wrap::getTimestampTz(); if (parent::save("sotf_programmes", "id")) { return $this->saveMetadataFile(); } else { return false; } }