5 include_once(
"Services/Table/classes/class.ilTable2GUI.php");
19 $a_tree, $a_slm_obj, $a_chap)
24 $this->tree = $a_tree;
25 $this->slm_object = $a_slm_obj;
26 $this->chap = $a_chap;
27 $this->
addColumn($lng->txt(
"sahs_sco_objective"),
"",
"50%");
28 $this->
addColumn($lng->txt(
"sahs_questions"),
"",
"50%");
36 include_once(
"./Modules/Scorm2004/classes/class.ilSCORM2004Node.php");
37 $this->
setTitle(ilScorm2004Node::_lookupTitle($this->chap),
48 $nodes = $this->tree->getChilds($this->chap);
52 $nodes = $this->tree->getSubTree($this->tree->getNodeData($this->tree->root_id),
true,array(
'sco'));
58 foreach($nodes as $node)
60 if ($node[
"type"] ==
"sco")
80 $lng->loadLanguageModule(
"assessment");
81 include_once(
"./Modules/Scorm2004/classes/class.ilSCORM2004NodeFactory.php");
83 $a_set[
"child"],
false);
84 $tr_data = $node_object->getObjectives();
87 foreach($tr_data as
$data)
89 $this->tpl->setCurrentBlock(
"objective");
90 $this->tpl->setVariable(
"TXT_LEARNING_OBJECTIVE",
93 $this->tpl->parseCurrentBlock();
97 include_once(
"./Modules/Scorm2004/classes/class.ilSCORM2004Page.php");
98 include_once(
"./Modules/TestQuestionPool/classes/class.assQuestion.php");
99 $childs = $this->tree->getChilds($a_set[
"child"]);
100 foreach ($childs as $child)
105 if (count($qids) > 0)
108 foreach ($qids as $qid)
110 $this->tpl->setCurrentBlock(
"question");
115 $this->tpl->setVariable(
"TXT_QUESTION", $qtext);
116 $this->tpl->setVariable(
"TXT_QTYPE", $lng->txt($qtype));
117 $this->tpl->setVariable(
"IMG_QST",
119 $this->tpl->parseCurrentBlock();
124 $this->tpl->setCurrentBlock(
"page");
125 $this->tpl->setVariable(
"TXT_PAGE_TITLE", $page_title);
127 $ilCtrl->setParameterByClass(
"ilscorm2004pagenodegui",
"obj_id", $child[
"child"]);
128 $this->tpl->setVariable(
"HREF_EDIT_PAGE",
129 $ilCtrl->getLinkTargetByClass(
"ilscorm2004pagenodegui",
131 $this->tpl->parseCurrentBlock();
136 $this->tpl->setVariable(
"TXT_SCO_TITLE", $a_set[
"title"]);
138 $ilCtrl->setParameterByClass(
"ilscorm2004scogui",
"obj_id", $a_set[
"child"]);
139 $this->tpl->setVariable(
"HREF_EDIT_SCO",
140 $ilCtrl->getLinkTargetByClass(
"ilscorm2004scogui",