3 declare(strict_types=0);
18 if (!isset(self::$possible_items[$this->obj_id])) {
24 foreach (ilObjAICCLearningModule::_getTrackingItems(
27 $items[$item[
'obj_id']][
'title'] = $item[
'title'];
35 $items[$item->getId()][
'title'] = $item->getTitle();
43 $items[$item[
'id']][
'title'] = $item[
'title'];
63 $tmp[
'title'] = $item[
'title'];
85 return ilObjAICCLearningModule::_getScoresForUser(
103 return array(
"raw" => null,
"max" => null,
"scaled" => null);
115 $new_collection =
new static($target_obj_id,
$this->mode);
116 $possible_items = $new_collection->getPossibleItems();
117 foreach ($this->items as $item_id) {
118 foreach ($possible_items as $pos_item_id => $pos_item) {
120 $new_collection->addEntry($pos_item_id);
131 $res_a = $DIC->database()->query(
132 'SELECT import_id, identifierref FROM sc_item WHERE obj_id = ' . $DIC->database(
138 $res_b = $DIC->database()->query(
139 'SELECT import_id, identifierref FROM sc_item WHERE obj_id = ' . $DIC->database(
148 && ($res_a[
'import_id'] == $res_b[
'import_id'])
149 && ($res_a[
'identifierref'] == $res_b[
'identifierref'])
152 $res_a = $DIC->database()->query(
153 'SELECT id, resourceid FROM cp_item WHERE cp_node_id = ' . $DIC->database(
159 $res_b = $DIC->database()->query(
160 'SELECT id, resourceid FROM cp_item WHERE cp_node_id = ' . $DIC->database(
169 && ($res_a[
'id'] == $res_b[
'id'])
170 && ($res_a[
'resourceid'] == $res_b[
'resourceid'])
isAssignedEntry(int $a_item_id)
itemsAreEqual(int $item_a_id, int $item_b_id)
cloneCollection(int $a_target_id, int $a_copy_id)
Scorm items are not copied, they are newly created by reading the manifest.
static _getTrackingItems(int $a_obj_id)
get all tracking items of scorm object
static _lookupSubType(int $a_obj_id)
lookup subtype id (scorm, )
static _lookupObjId(int $ref_id)
static _getScoresForUser(int $a_item_id, int $a_user_id)
getTableGUIData(int $a_parent_ref_id)
static _getScores2004ForUser(int $a_cp_node_id, int $a_user)
getScoresForUserAndCP_Node_Id(int $item_id, int $user_id)
LP collection base class.
static _getTrackingItems(int $a_obj_id)
get all tracking items of scorm object currently a for learning progress only
static array $possible_items