5 require_once(
"./Modules/ScormAicc/classes/AICC/class.ilAICCObject.php");
 
   52                 $this->course_creator = $a_course_creator;
 
   62                 $this->course_id = $a_course_id;
 
   72                 $this->course_system = $a_course_system;
 
   82                 $this->course_title = $a_course_title;
 
   92                 $this->level = $a_level;
 
  102                                 if($a_max_fields_cst == NULL) $a_max_fields_cst=0;
 
  103                 $this->max_fields_cst = $a_max_fields_cst;
 
  113                 if($a_max_fields_ort == NULL) $a_max_fields_ort=0;
 
  114                 $this->max_fields_ort = $a_max_fields_ort;
 
  124                 $this->total_aus = $a_total_aus;
 
  135                 $this->total_blocks = $a_total_blocks;
 
  145                 if($a_total_complex_obj == NULL) $a_total_complex_obj=0;        
 
  146                 $this->total_complex_obj = $a_total_complex_obj;
 
  156                 $this->total_objectives = $a_total_objectives;
 
  166                 $this->version = $a_version;
 
  176                 $this->max_normal = $a_max_normal;
 
  186                 $this->description = $a_description;
 
  195                 $obj_set = $ilDB->queryF(
'SELECT * FROM aicc_course WHERE obj_id = %s',
 
  196                                         array(
'integer'), array($this->
id));
 
  198                 while($obj_rec = $ilDB->fetchAssoc($obj_set))
 
  204                         $this->
setLevel($obj_rec[
"c_level"]);
 
  223                 $ilDB->insert(
'aicc_course', array(
 
  224                         'obj_id'                        => array(
'integer', $this->
getId()),
 
  226                         'course_id'                     => array(
'text', $this->
getCourseId()),
 
  229                         'c_level'                       => array(
'text', $this->
getLevel()),
 
  232                         'total_aus'                     => array(
'integer', $this->
getTotalAUs()),
 
  236                         'version'                       => array(
'text', $this->
getVersion()),
 
  237                         'max_normal'            => array(
'integer', $this->
getMaxNormal()),
 
  248                 $ilDB->update(
'aicc_course',
 
  251                                 'course_id'                     => array(
'text', $this->
getCourseId()),
 
  254                                 'c_level'                       => array(
'text', $this->
getLevel()),
 
  257                                 'total_aus'                     => array(
'integer', $this->
getTotalAUs()),
 
  261                                 'version'                       => array(
'text', $this->
getVersion()),
 
  262                                 'max_normal'            => array(
'integer', $this->
getMaxNormal()),
 
  266                                 'obj_id'                        => array(
'integer', $this->
getId())
 
  277                 $statement = $ilDB->manipulateF(
 
  278                         'DELETE FROM aicc_course WHERE obj_id = %s',
 
  280                         array($this->
getId())
 
  283                 $statement = $ilDB->manipulateF(
' 
  284                         DELETE FROM scorm_tracking  
  287                         array(
'integer', 
'integer'),
 
  292                 include_once(
"./Services/Tracking/classes/class.ilLPStatusWrapper.php");
 
  304                 global 
$ilDB, $ilUser;
 
  308                         $a_user_id = $ilUser->getId();
 
  311                 $track_set = $ilDB->queryF(
' 
  312                         SELECT lvalue, rvalue FROM scorm_tracking  
  316                         array(
'integer', 
'integer', 
'integer'),
 
  320                 while ($track_rec = $ilDB->fetchAssoc($track_set))
 
  322                         $trdata[$track_rec[
"lvalue"]] = $track_rec[
"rvalue"];
 
  330                 require_once(
"./Modules/ScormAicc/classes/SCORM/class.ilObjSCORMTracking.php");