5 require_once(
"./Modules/Scorm2004/classes/class.ilSCORM2004PageNode.php");
6 require_once(
"./Modules/Scorm2004/classes/class.ilSCORM2004Chapter.php");
7 require_once(
"./Modules/Scorm2004/classes/class.ilSCORM2004SeqChapter.php");
8 require_once(
"./Modules/Scorm2004/classes/class.ilSCORM2004Sco.php");
9 require_once(
"./Modules/Scorm2004/classes/class.ilSCORM2004Asset.php");
23 public static function getInstance($a_slm_object, $a_id = 0, $a_halt =
true)
27 $ilDB = $DIC->database();
29 $query =
"SELECT * FROM sahs_sc13_tree_node WHERE obj_id = " .
30 $ilDB->quote($a_id,
"integer");
32 $obj_rec =
$ilDB->fetchAssoc($obj_set);
34 switch ($obj_rec[
"type"]) {
37 $obj->setId($obj_rec[
"obj_id"]);
38 $obj->setDataRecord($obj_rec);
44 $obj->setId($obj_rec[
"obj_id"]);
45 $obj->setDataRecord($obj_rec);
51 $obj->setId($obj_rec[
"obj_id"]);
52 $obj->setDataRecord($obj_rec);
58 $obj->setId($obj_rec[
"obj_id"]);
59 $obj->setDataRecord($obj_rec);
65 $obj->setId($obj_rec[
"obj_id"]);
66 $obj->setDataRecord($obj_rec);
Class ilSCORM2004PageNode.
Class ilSCORM2004NodeFactory.
Class ilSCORM2004Chapter.
Class ilSCORM2004Chapter.
static getInstance($a_slm_object, $a_id=0, $a_halt=true)