24 require_once
"./Services/Object/classes/class.ilObjectGUI.php";
25 require_once(
"./Services/FileSystem/classes/class.ilFileSystemGUI.php");
26 require_once(
"./Modules/ScormAicc/classes/class.ilObjSCORMLearningModuleGUI.php");
27 require_once
"./Modules/ScormAicc/classes/class.ilObjAICCCourseInterchangeFiles.php";
28 require_once(
"./Modules/ScormAicc/classes/class.ilObjAICCLearningModule.php");
53 $lng->loadLanguageModule(
"content");
55 $this->
ilObjectGUI($a_data,$a_id,$a_call_by_reference,$a_prepare_output);
66 if ($this->call_by_reference)
96 include_once(
'./Services/PrivacySecurity/classes/class.ilPrivacySettings.php');
98 if(!$privacy->enabledSahsProtocolData())
100 $this->ilias->raiseError($this->lng->txt(
'permission_denied'), $this->ilias->error_obj->MESSAGE);
103 include_once
"./Services/Table/classes/class.ilTableGUI.php";
106 $this->tpl->addBlockfile(
"ADM_CONTENT",
"adm_content",
"tpl.table.html");
108 $this->tpl->addBlockfile(
"TBL_CONTENT",
"tbl_content",
"tpl.scorm_track_items.html",
"Modules/ScormAicc");
112 $this->tpl->setVariable(
"FORMACTION",
"adm_object.php?ref_id=".$this->ref_id.
"$obj_str&cmd=gateway");
118 $tbl->setTitle($this->lng->txt(
"cont_tracking_items"));
120 $tbl->setHeaderNames(array($this->lng->txt(
"title")));
122 $header_params = array(
"ref_id" => $this->ref_id,
"cmd" =>
$_GET[
"cmd"],
123 "cmdClass" => get_class($this));
124 $cols = array(
"title");
125 $tbl->setHeaderVars($cols, $header_params);
126 $tbl->setColumnWidth(array(
"100%"));
129 $tbl->setOrderColumn(
$_GET[
"sort_by"]);
130 $tbl->setOrderDirection(
$_GET[
"sort_order"]);
131 $tbl->setLimit(
$_GET[
"limit"]);
132 $tbl->setOffset(
$_GET[
"offset"]);
133 $tbl->setMaxCount($this->maxcount);
139 $tbl->setFooter(
"tblfooter",$this->lng->txt(
"previous"),$this->lng->txt(
"next"));
140 #$tbl->disable("footer");
143 $items = $this->
object->getTrackedItems();
146 $tbl->setMaxCount(count($items));
147 $items = array_slice($items,
$_GET[
"offset"],
$_GET[
"limit"]);
150 if (count($items) > 0)
152 foreach ($items as $item)
154 $this->tpl->setCurrentBlock(
"tbl_content");
155 $this->tpl->setVariable(
"TXT_ITEM_TITLE", $item->getTitle());
156 $this->ctrl->setParameter($this,
"obj_id", $item->getId());
157 $this->tpl->setVariable(
"LINK_ITEM",
158 $this->ctrl->getLinkTarget($this,
"showTrackingItem"));
161 $this->tpl->setVariable(
"CSS_ROW", $css_row);
162 $this->tpl->parseCurrentBlock();
167 $this->tpl->setCurrentBlock(
"notfound");
168 $this->tpl->setVariable(
"TXT_OBJECT_NOT_FOUND", $this->lng->txt(
"obj_not_found"));
169 $this->tpl->setVariable(
"NUM_COLS", $num);
170 $this->tpl->parseCurrentBlock();