} if ($this->type != 'scale' && $this->type != 'list' && $this->type != 'listscale' && $this->type != 'rubric' && $this->type != 'mixed' && $this->type != 'differential' && $this->type != 'argumentset') { print_error('The type assessment tool is wrong'); } $this->timemodified = time(); $tool = evalcomix_tool::fetch(array('id' => $this->id)); $this->timecreated = $tool->timecreated; $data = $this->get_record_data(); $DB->update_record($this->table, $data); $this->notify_changed(false); return true; } /** * Finds and returns all evalcomix_tool instances. * @static abstract * * @return array array of evalcomix_tool instances or false if none found. */ public static function fetch_all($params) {