24 require_once(
"./Modules/ScormAicc/classes/AICC/class.ilAICCObject.php");
71 $this->course_creator = $a_course_creator;
81 $this->course_id = $a_course_id;
91 $this->course_system = $a_course_system;
101 $this->course_title = $a_course_title;
111 $this->level = $a_level;
121 $this->max_fields_cst = $a_max_fields_cst;
131 $this->max_fields_ort = $a_max_fields_ort;
141 $this->total_aus = $a_total_aus;
151 $this->total_blocks = $a_total_blocks;
161 $this->total_complex_obj = $a_total_complex_obj;
171 $this->total_objectives = $a_total_objectives;
181 $this->version = $a_version;
191 $this->max_normal = $a_max_normal;
201 $this->description = $a_description;
210 $q =
"SELECT * FROM aicc_course WHERE obj_id = ".$ilDB->quote($this->
getId());
212 $obj_set = $this->ilias->db->query($q);
236 $q =
"INSERT INTO aicc_course (obj_id, course_creator, course_id, course_system, course_title,
237 level, max_fields_cst, max_fields_ort, total_aus, total_blocks,
238 total_complex_obj, total_objectives, version, max_normal,
239 description) VALUES (";
240 $q.= $ilDB->quote($this->
getId()).
", ";
245 $q.= $ilDB->quote($this->
getLevel()).
", ";
255 $this->ilias->db->query($q);
264 $q =
"UPDATE aicc_course SET ";
266 $q.=
"course_id=".$ilDB->quote($this->
getCourseId()).
", ";
269 $q.=
"level=".$ilDB->quote($this->
getLevel()).
", ";
272 $q.=
"total_aus=".$ilDB->quote($this->
getTotalAUs()).
", ";
276 $q.=
"version=".$ilDB->quote($this->
getVersion()).
", ";
277 $q.=
"max_normal=".$ilDB->quote($this->
getMaxNormal()).
", ";
279 $q.=
"WHERE obj_id = ".$ilDB->quote($this->
getId());
280 $this->ilias->db->query($q);
289 $q =
"DELETE FROM aicc_course WHERE obj_id =".$ilDB->quote($this->
getId());
292 $q =
"DELETE FROM scorm_tracking WHERE ".
293 "sco_id = ".$ilDB->quote($this->
getId()).
294 " AND obj_id = ".$ilDB->quote($this->
getALMId());
295 $ilLog->write(
"SAHS Delete: ".$q);
307 global $ilDB, $ilUser;
311 $a_user_id = $ilUser->getId();
314 $q =
"SELECT * FROM scorm_tracking WHERE ".
315 "sco_id = ".$ilDB->quote($this->
getId()).
" AND ".
316 "user_id = ".$ilDB->quote($a_user_id).
317 " AND obj_id = ".$ilDB->quote($this->
getALMId());
319 $track_set = $ilDB->query($q);
323 $trdata[$track_rec[
"lvalue"]] = $track_rec[
"rvalue"];
331 require_once(
"./Modules/ScormAicc/classes/SCORM/class.ilObjSCORMTracking.php");