24 require_once(
"./Modules/ScormAicc/classes/AICC/class.ilAICCObject.php");
67 $this->au_type = $a_au_type;
77 $this->command_line = $a_command_line;
87 $this->max_time_allowed = $a_max_time_allowed;
97 $this->time_limit_action = $a_time_limit_action;
107 $this->max_score = $a_max_score;
117 $this->core_vendor = $a_core_vendor;
127 $this->system_vendor = $a_system_vendor;
137 $this->file_name = $a_file_name;
147 $this->mastery_score = $a_mastery_score;
157 $this->web_launch = $a_web_launch;
167 $this->au_password = $a_au_password;
176 $q =
"SELECT * FROM aicc_units WHERE obj_id = ".$ilDB->quote($this->
getId());
178 $obj_set = $this->ilias->db->query($q);
199 $q =
"INSERT INTO aicc_units (obj_id, type, command_line, max_time_allowed, time_limit_action,
200 max_score, core_vendor, system_vendor, file_name, mastery_score,
201 web_launch, au_password) VALUES (";
202 $q.=$ilDB->quote($this->
getId()).
", ";
203 $q.=$ilDB->quote($this->
getAUType()).
", ";
215 $this->ilias->db->query($q);
224 $q =
"UPDATE aicc_units SET ";
225 $q.=
"type=".$ilDB->quote($this->
getAUType()).
", ";
229 $q.=
"max_score=".$ilDB->quote($this->
getMaxScore()).
", ";
230 $q.=
"core_vendor=".$ilDB->quote($this->
getCoreVendor()).
", ";
232 $q.=
"file_name=".$ilDB->quote($this->
getFilename()).
", ";
234 $q.=
"web_launch=".$ilDB->quote($this->
getWebLaunch()).
", ";
236 $q.=
"WHERE obj_id = ".$ilDB->quote($this->
getId());
237 $this->ilias->db->query($q);
246 $q =
"DELETE FROM aicc_units WHERE obj_id =".$ilDB->quote($this->
getId());
247 $ilLog->write(
"SAHS Delete(Unit): ".$q);
250 $q =
"DELETE FROM scorm_tracking WHERE ".
251 "sco_id = ".$ilDB->quote($this->
getId()).
252 " AND obj_id = ".$ilDB->quote($this->
getALMId());
264 global $ilDB, $ilUser;
268 $a_user_id = $ilUser->getId();
271 $q =
"SELECT * FROM scorm_tracking WHERE ".
272 "sco_id = ".$ilDB->quote($this->
getId()).
" AND ".
273 "user_id = ".$ilDB->quote($a_user_id).
274 " AND obj_id = ".$ilDB->quote($this->
getALMId());;
276 $track_set = $ilDB->query($q);
280 $trdata[$track_rec[
"lvalue"]] = $track_rec[
"rvalue"];
288 require_once(
"./Modules/ScormAicc/classes/SCORM/class.ilObjSCORMTracking.php");