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");
49 function __construct($a_data,$a_id,$a_call_by_reference, $a_prepare_output =
true)
53 $lng->loadLanguageModule(
"content");
55 parent::__construct($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);
130 $tbl->setOrderDirection(
$_GET[
"sort_order"]);
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();
179 parent::showTrackingItem();
Class ilObjSCORMLearningModuleGUI.
Class ilObjAICCLearningModule.
Class ilObjAICCLearningModuleGUI.
showTrackingItem()
show tracking data
redirection script todo: (a better solution should control the processing via a xml file) ...
Create styles array
The data for the language used.
showTrackingItems()
save new learning module to db
__construct($a_data, $a_id, $a_call_by_reference, $a_prepare_output=true)
Constructor.
static switchColor($a_num, $a_css1, $a_css2)
switches style sheets for each even $a_num (used for changing colors of different result rows) ...
static _getInstance()
Get instance of ilPrivacySettings.
assignObject()
assign aicc object to aicc gui object