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 if($a_max_fields_cst == NULL) $a_max_fields_cst=0;
122 $this->max_fields_cst = $a_max_fields_cst;
132 if($a_max_fields_ort == NULL) $a_max_fields_ort=0;
133 $this->max_fields_ort = $a_max_fields_ort;
143 $this->total_aus = $a_total_aus;
154 $this->total_blocks = $a_total_blocks;
164 if($a_total_complex_obj == NULL) $a_total_complex_obj=0;
165 $this->total_complex_obj = $a_total_complex_obj;
175 $this->total_objectives = $a_total_objectives;
185 $this->version = $a_version;
195 $this->max_normal = $a_max_normal;
205 $this->description = $a_description;
214 $obj_set = $ilDB->queryF(
'SELECT * FROM aicc_course WHERE obj_id = %s',
215 array(
'integer'), array($this->
id));
217 while($obj_rec = $ilDB->fetchAssoc($obj_set))
223 $this->
setLevel($obj_rec[
"c_level"]);
242 $ilDB->insert(
'aicc_course', array(
243 'obj_id' => array(
'integer', $this->
getId()),
245 'course_id' => array(
'text', $this->
getCourseId()),
248 'c_level' => array(
'text', $this->
getLevel()),
251 'total_aus' => array(
'integer', $this->
getTotalAUs()),
255 'version' => array(
'text', $this->
getVersion()),
256 'max_normal' => array(
'integer', $this->
getMaxNormal()),
267 $ilDB->update(
'aicc_course',
270 'course_id' => array(
'text', $this->
getCourseId()),
273 'c_level' => array(
'text', $this->
getLevel()),
276 'total_aus' => array(
'integer', $this->
getTotalAUs()),
280 'version' => array(
'text', $this->
getVersion()),
281 'max_normal' => array(
'integer', $this->
getMaxNormal()),
285 'obj_id' => array(
'integer', $this->
getId())
296 $statement = $ilDB->manipulateF(
297 'DELETE FROM aicc_course WHERE obj_id = %s',
299 array($this->
getId())
302 $statement = $ilDB->manipulateF(
'
303 DELETE FROM scorm_tracking
306 array(
'integer',
'integer'),
318 global
$ilDB, $ilUser;
322 $a_user_id = $ilUser->getId();
325 $track_set = $ilDB->queryF(
'
326 SELECT lvalue, rvalue FROM scorm_tracking
330 array(
'integer',
'integer',
'integer'),
334 while ($track_rec = $ilDB->fetchAssoc($track_set))
336 $trdata[$track_rec[
"lvalue"]] = $track_rec[
"rvalue"];
344 require_once(
"./Modules/ScormAicc/classes/SCORM/class.ilObjSCORMTracking.php");