5 require_once
"Services/Tracking/classes/collection/class.ilLPCollection.php";
23 if (!isset(self::$possible_items[$this->obj_id])) {
24 include_once
'./Modules/ScormAicc/classes/class.ilObjSAHSLearningModule.php';
31 include_once
'./Modules/ScormAicc/classes/class.ilObjAICCLearningModule.php';
32 foreach (ilObjAICCLearningModule::_getTrackingItems($this->obj_id) as $item) {
33 $items[$item[
'obj_id']][
'title'] = $item[
'title'];
38 include_once
'./Modules/ScormAicc/classes/class.ilObjSCORMLearningModule.php';
39 include_once
'./Modules/ScormAicc/classes/SCORM/class.ilSCORMItem.php';
41 $items[$item->getId()][
'title'] = $item->getTitle();
46 include_once
'./Modules/Scorm2004/classes/class.ilObjSCORM2004LearningModule.php';
48 $items[$item[
'id']][
'title'] = $item[
'title'];
73 $tmp[
'title'] = $item[
'title'];
90 include_once
'./Modules/ScormAicc/classes/class.ilObjSAHSLearningModule.php';
94 include_once
'./Modules/ScormAicc/classes/class.ilObjAICCLearningModule.php';
95 return ilObjAICCLearningModule::_getScoresForUser($item_id, $user_id);
98 include_once
'./Modules/ScormAicc/classes/class.ilObjSCORMLearningModule.php';
103 include_once
'./Modules/Scorm2004/classes/class.ilObjSCORM2004LearningModule.php';
107 return array(
"raw" => null,
"max" => null,
"scaled" => null);
122 $new_collection =
new static($target_obj_id,
$this->mode);
124 foreach ($this->items as $item_id) {
127 $new_collection->addEntry($pos_item_id);
132 $DIC->logger()->root()->write(__METHOD__ .
': cloned learning progress collection.');
147 $res_a = $DIC->database()->query(
'SELECT import_id, identifierref FROM sc_item WHERE obj_id = ' . $DIC->database()->quote($item_a_id,
'integer'))->fetchAssoc();
148 $res_b = $DIC->database()->query(
'SELECT import_id, identifierref FROM sc_item WHERE obj_id = ' . $DIC->database()->quote($item_b_id,
'integer'))->fetchAssoc();
152 && ($res_a[
'import_id'] == $res_b[
'import_id'])
153 && ($res_a[
'identifierref'] == $res_b[
'identifierref'])
156 $res_a = $DIC->database()->query(
'SELECT id, resourceid FROM cp_item WHERE cp_node_id = ' . $DIC->database()->quote($item_a_id,
'integer'))->fetchAssoc();
157 $res_b = $DIC->database()->query(
'SELECT id, resourceid FROM cp_item WHERE cp_node_id = ' . $DIC->database()->quote($item_b_id,
'integer'))->fetchAssoc();
161 && ($res_a[
'import_id'] == $res_b[
'import_id'])
162 && ($res_a[
'identifierref'] == $res_b[
'identifierref'])
static _getTrackingItems($a_obj_id)
get all tracking items of scorm object
itemsAreEqual($item_a_id, $item_b_id)
static _lookupSubType($a_obj_id)
lookup subtype id (scorm, )
static _getScores2004ForUser($a_cp_node_id, $a_user)
cloneCollection($a_target_id, $a_copy_id)
Scorm items are not copied, they are newly created by reading the manifest.
static _lookupObjId($a_id)
Create styles array
The data for the language used.
static _getTrackingItems($a_obj_id)
get all tracking items of scorm object static
getTableGUIData($a_parent_ref_id)
LP collection base class.
isAssignedEntry($a_item_id)
getScoresForUserAndCP_Node_Id($item_id, $user_id)
static _getScoresForUser($a_item_id, $a_user_id)