5 require_once
"./Services/Object/classes/class.ilObject.php";
7 require_once
"./Modules/ScormAicc/classes/class.ilObjSCORMLearningModule.php";
30 parent::__construct($a_id,$a_call_by_reference);
38 require_once(
"./Modules/ScormAicc/classes/class.ilObjAICCCourseInterchangeFiles.php");
42 $cifModule->readFiles();
43 if (!empty($cifModule->errorText))
45 $this->
ilias->raiseError(
"<b>Error reading LM-File(s):</b><br>".implode(
"<br>", $cifModule->errorText), $this->ilias->error_obj->WARNING);
48 if (
$_POST[
"validate"] ==
"y")
51 $cifModule->validate();
52 if (!empty($cifModule->errorText))
54 $this->
ilias->raiseError(
"<b>Validation Error(s):</b><br>".implode(
"<br>", $cifModule->errorText), $this->ilias->error_obj->WARNING);
58 $cifModule->writeToDatabase($this->
getId());
78 if (!parent::delete())
90 $ilDB->manipulateF(
'DELETE FROM sahs_lm WHERE id = %s',
94 $res = $ilDB->queryF(
' 95 SELECT * FROM aicc_object, aicc_units 96 WHERE aicc_object.obj_id = aicc_units.obj_id 97 AND aicc_object.slm_id = %s',
100 while(
$row = $ilDB->fetchAssoc(
$res))
102 $obj_id =
$row[
'obj_id'];
104 DELETE FROM aicc_units WHERE obj_id = %s',
108 $res = $ilDB->queryF(
' 109 SELECT * FROM aicc_object, aicc_course 110 WHERE aicc_object.obj_id = aicc_course.obj_id 111 AND aicc_object.slm_id = %s',
114 while(
$row = $ilDB->fetchAssoc(
$res))
116 $obj_id =
$row[
'obj_id'];
118 DELETE FROM aicc_course WHERE obj_id = %s',
122 $ilDB->manipulateF(
'DELETE FROM scorm_tree WHERE slm_id = %s',
125 $ilDB->manipulateF(
'DELETE FROM aicc_object WHERE slm_id = %s',
128 $q_log =
"DELETE FROM scorm_tracking WHERE obj_id = ".$ilDB->quote($this->
getId());
129 $ilLog->write(
"SAHS Delete (AICC LM): ".$q_log);
130 $ilDB->manipulateF(
'DELETE FROM scorm_tracking WHERE obj_id = %s',
133 $q_log =
"DELETE FROM sahs_user WHERE obj_id = ".$ilDB->quote($this->
getId());
134 $ilLog->write(
"SAHS Delete (AICC LM): ".$q_log);
135 $ilDB->manipulateF(
'DELETE FROM sahs_user WHERE obj_id = %s',
139 include_once(
"./Services/Tracking/classes/class.ilLPStatusWrapper.php");
163 include_once(
"./Modules/ScormAicc/classes/AICC/class.ilAICCUnit.php");
165 $statement = $ilDB->queryF(
' 166 SELECT obj_id,title FROM aicc_object 169 array(
'integer',
'text'),
170 array($a_obj_id,
'sau')
173 while(
$row = $ilDB->fetchObject($statement))
175 $items[
$row->obj_id][
'obj_id'] =
$row->obj_id;
176 $items[
$row->obj_id][
'title'] =
$row->title;
180 return $items ? $items :
array();
210 $sco_set = $ilDB->queryF(
' 211 SELECT DISTINCT sco_id FROM scorm_tracking WHERE obj_id = %s',
215 while($sco_rec = $ilDB->fetchAssoc($sco_set))
217 include_once(
"./Modules/ScormAicc/classes/AICC/class.ilAICCUnit.php");
218 $ac_item =
new ilAICCUnit($sco_rec[
"sco_id"]);
219 $items[count($items)] =& $ac_item;
230 $data_set = $ilDB->queryF(
' 231 SELECT * FROM scorm_tracking 234 ORDER BY user_id, lvalue',
235 array(
'integer',
'integer'),
239 while($data_rec = $ilDB->fetchAssoc($data_set))
getTrackingItems()
get all tracking items of scorm object
Class ilObjAICCLearningModule.
getTrackedItems()
get all tracked items of current user
static _refreshStatus($a_obj_id, $a_users=null)
Set dirty.
getTrackingData($a_sco_id)
getDataDirectory($mode="filesystem")
get data directory of lm
getId()
get object id public
redirection script todo: (a better solution should control the processing via a xml file) ...
Create styles array
The data for the language used.
static _getTrackingItems($a_obj_id)
get all tracking items of scorm object
deleteMetaData()
delete meta data entry
__construct($a_id=0, $a_call_by_reference=true)
Constructor public.
static delDir($a_dir, $a_clean_only=false)
removes a dir and all its content (subdirs and files) recursively
Class ilObjSCORMLearningModule.