24 require_once
"classes/class.ilObjectGUI.php";
25 require_once(
"classes/class.ilFileSystemGUI.php");
26 require_once(
"classes/class.ilTabsGUI.php");
27 require_once(
"./Modules/ScormAicc/classes/class.ilObjSCORMLearningModuleGUI.php");
28 require_once
"./Modules/ScormAicc/classes/class.ilObjAICCCourseInterchangeFiles.php";
29 require_once(
"./Modules/ScormAicc/classes/class.ilObjAICCLearningModule.php");
54 $lng->loadLanguageModule(
"content");
56 $this->
ilObjectGUI($a_data,$a_id,$a_call_by_reference,$a_prepare_output);
57 #$this->tabs_gui =& new ilTabsGUI();
69 if ($this->call_by_reference)
99 include_once(
'./Services/PrivacySecurity/classes/class.ilPrivacySettings.php');
101 if(!$privacy->enabledSahsProtocolData())
103 $this->ilias->raiseError($this->lng->txt(
'permission_denied'), $this->ilias->error_obj->MESSAGE);
106 include_once
"./Services/Table/classes/class.ilTableGUI.php";
109 $this->tpl->addBlockfile(
"ADM_CONTENT",
"adm_content",
"tpl.table.html");
111 $this->tpl->addBlockfile(
"TBL_CONTENT",
"tbl_content",
"tpl.scorm_track_items.html",
"Modules/ScormAicc");
115 $this->tpl->setVariable(
"FORMACTION",
"adm_object.php?ref_id=".$this->ref_id.
"$obj_str&cmd=gateway");
121 $tbl->setTitle($this->lng->txt(
"cont_tracking_items"));
123 $tbl->setHeaderNames(array($this->lng->txt(
"title")));
125 $header_params = array(
"ref_id" => $this->ref_id,
"cmd" =>
$_GET[
"cmd"],
126 "cmdClass" => get_class($this));
127 $cols = array(
"title");
128 $tbl->setHeaderVars($cols, $header_params);
129 $tbl->setColumnWidth(array(
"100%"));
132 $tbl->setOrderColumn(
$_GET[
"sort_by"]);
133 $tbl->setOrderDirection(
$_GET[
"sort_order"]);
134 $tbl->setLimit(
$_GET[
"limit"]);
135 $tbl->setOffset(
$_GET[
"offset"]);
136 $tbl->setMaxCount($this->maxcount);
142 $tbl->setFooter(
"tblfooter",$this->lng->txt(
"previous"),$this->lng->txt(
"next"));
143 #$tbl->disable("footer");
146 $items = $this->
object->getTrackedItems();
149 $tbl->setMaxCount(count($items));
150 $items = array_slice($items,
$_GET[
"offset"],
$_GET[
"limit"]);
153 if (count($items) > 0)
155 foreach ($items as $item)
157 $this->tpl->setCurrentBlock(
"tbl_content");
158 $this->tpl->setVariable(
"TXT_ITEM_TITLE", $item->getTitle());
159 $this->ctrl->setParameter($this,
"obj_id", $item->getId());
160 $this->tpl->setVariable(
"LINK_ITEM",
161 $this->ctrl->getLinkTarget($this,
"showTrackingItem"));
164 $this->tpl->setVariable(
"CSS_ROW", $css_row);
165 $this->tpl->parseCurrentBlock();
170 $this->tpl->setCurrentBlock(
"notfound");
171 $this->tpl->setVariable(
"TXT_OBJECT_NOT_FOUND", $this->lng->txt(
"obj_not_found"));
172 $this->tpl->setVariable(
"NUM_COLS", $num);
173 $this->tpl->parseCurrentBlock();