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 static function getInstance($a_slm_object, $a_id = 0, $a_halt =
true)
27 $query =
"SELECT * FROM sahs_sc13_tree_node WHERE obj_id = ".
28 $ilDB->quote($a_id,
"integer");
29 $obj_set = $ilDB->query(
$query);
30 $obj_rec = $ilDB->fetchAssoc($obj_set);
32 switch($obj_rec[
"type"])
36 $obj->setId($obj_rec[
"obj_id"]);
37 $obj->setDataRecord($obj_rec);
43 $obj->setId($obj_rec[
"obj_id"]);
44 $obj->setDataRecord($obj_rec);
50 $obj->setId($obj_rec[
"obj_id"]);
51 $obj->setDataRecord($obj_rec);
57 $obj->setId($obj_rec[
"obj_id"]);
58 $obj->setDataRecord($obj_rec);
64 $obj->setId($obj_rec[
"obj_id"]);
65 $obj->setDataRecord($obj_rec);