24 require_once(
"./Modules/LearningModule/classes/class.ilLMPageObject.php");
25 require_once(
"./Modules/LearningModule/classes/class.ilStructureObject.php");
39 public static function getInstance(&$a_content_obj, $a_id = 0, $a_halt =
true)
43 $ilDB = $DIC->database();
45 $query =
"SELECT * FROM lm_data WHERE obj_id = " .
46 $ilDB->quote($a_id,
"integer");
48 $obj_rec =
$ilDB->fetchAssoc($obj_set);
50 switch ($obj_rec[
"type"]) {
53 $obj->setId($obj_rec[
"obj_id"]);
54 $obj->setDataRecord($obj_rec);
60 $obj->setId($obj_rec[
"obj_id"]);
61 $obj->setDataRecord($obj_rec);
static getInstance(&$a_content_obj, $a_id=0, $a_halt=true)