24 include_once(
"Services/Table/classes/class.ilTable2GUI.php");
38 $a_tree, $a_slm_obj, $a_chap)
43 $this->tree = $a_tree;
44 $this->slm_object = $a_slm_obj;
45 $this->chap = $a_chap;
46 $this->
addColumn($lng->txt(
"sahs_sco_objective"),
"",
"50%");
47 $this->
addColumn($lng->txt(
"sahs_questions"),
"",
"50%");
55 include_once(
"./Modules/Scorm2004/classes/class.ilSCORM2004Node.php");
56 $this->
setTitle(ilScorm2004Node::_lookupTitle($this->chap),
65 $nodes = $this->tree->getChilds($this->chap);
69 foreach($nodes as $node)
71 if ($node[
"type"] ==
"sco")
91 $lng->loadLanguageModule(
"assessment");
92 include_once(
"./Modules/Scorm2004/classes/class.ilSCORM2004NodeFactory.php");
94 $a_set[
"child"],
false);
95 $tr_data = $node_object->getObjectives();
98 foreach($tr_data as
$data)
100 $this->tpl->setCurrentBlock(
"objective");
101 $this->tpl->setVariable(
"TXT_LEARNING_OBJECTIVE", $data->getObjectiveID());
103 $this->tpl->parseCurrentBlock();
107 include_once(
"./Modules/Scorm2004/classes/class.ilSCORM2004Page.php");
108 include_once(
"./Modules/TestQuestionPool/classes/class.assQuestion.php");
109 $childs = $this->tree->getChilds($a_set[
"child"]);
110 foreach ($childs as $child)
115 if (count($qids) > 0)
118 foreach ($qids as $qid)
120 $this->tpl->setCurrentBlock(
"question");
124 $this->tpl->setVariable(
"TXT_QUESTION", $qtext);
125 $this->tpl->setVariable(
"TXT_QTYPE", $lng->txt($qtype));
126 $this->tpl->setVariable(
"IMG_QST",
128 $this->tpl->parseCurrentBlock();
133 $this->tpl->setCurrentBlock(
"page");
134 $this->tpl->setVariable(
"TXT_PAGE_TITLE", $page_title);
136 $ilCtrl->setParameterByClass(
"ilscorm2004pagenodegui",
"obj_id", $child[
"child"]);
137 $this->tpl->setVariable(
"HREF_EDIT_PAGE",
138 $ilCtrl->getLinkTargetByClass(
"ilscorm2004pagenodegui",
140 $this->tpl->parseCurrentBlock();
145 $this->tpl->setVariable(
"TXT_SCO_TITLE", $a_set[
"title"]);
147 $ilCtrl->setParameterByClass(
"ilscorm2004scogui",
"obj_id", $a_set[
"child"]);
148 $this->tpl->setVariable(
"HREF_EDIT_SCO",
149 $ilCtrl->getLinkTargetByClass(
"ilscorm2004scogui",