4 include_once(
"./Services/Tracking/classes/class.ilLPTableBaseGUI.php");
20 function __construct($a_parent_obj, $a_parent_cmd, $a_type =
"")
24 $this->
setId(
"lpobjtbl");
27 $this->
setTitle($this->lng->txt(
"learning_progress"));
28 $this->
setDescription($this->lng->txt(
"trac_learning_progress_objects_description"));
32 $this->
addColumn($this->lng->txt(
"trac_title"),
"title",
"30%");
34 include_once(
"Services/Tracking/classes/class.ilLPStatus.php");
39 foreach($all_status as $status => $column)
42 $caption =
"<img src=\"".ilLearningProgressBaseGUI::_getImagePathForStatus($status).
"\" alt=\"".$caption.
"\" title=\"".$caption.
"\" /> ".$caption;
44 $this->
addColumn($caption, $column,
"10%");
47 $this->
addColumn($this->lng->txt(
"path"),
"",
"20%");
48 $this->
addColumn($this->lng->txt(
"actions"),
"",
"10%");
51 $this->
setFormAction($ilCtrl->getFormActionByClass(get_class($this)));
52 $this->
setRowTemplate(
"tpl.lp_object_list_row.html",
"Services/Tracking");
53 #$this->disable("footer");
63 $this->
addMultiCommand(
"hideSelected", $lng->txt(
"trac_hide_selected"));
72 $obj_ids = $this->obj_ids;
81 include_once(
"./Services/Tracking/classes/class.ilTrQuery.php");
83 foreach(
$data as $idx => $item)
99 $this->tpl->setVariable(
"OBJ_ID", $a_set[
"obj_id"]);
101 $this->tpl->setVariable(
"ICON_ALT", $lng->txt($a_set[
"type"]));
102 $this->tpl->setVariable(
"TITLE_TEXT", $a_set[
"title"]);
104 if($a_set[
"offline"])
106 $this->tpl->setCurrentBlock(
"offline");
107 $this->tpl->setVariable(
"TEXT_STATUS", $this->lng->txt(
"status"));
108 $this->tpl->setVariable(
"TEXT_OFFLINE", $this->lng->txt(
"offline"));
109 $this->tpl->parseCurrentBlock();
112 $this->tpl->setVariable(
"STATUS_NOT_ATTEMPTED_VALUE", $a_set[
"status_not_attempted"]);
113 $this->tpl->setVariable(
"STATUS_IN_PROGRESS_VALUE", $a_set[
"status_in_progress"]);
114 $this->tpl->setVariable(
"STATUS_COMPLETED_VALUE", $a_set[
"status_completed"]);
115 $this->tpl->setVariable(
"STATUS_FAILED_VALUE", $a_set[
"status_failed"]);
121 $this->tpl->setCurrentBlock(
"item_path");
122 foreach(
$path as $path_item)
124 $this->tpl->setVariable(
"PATH_ITEM", $path_item);
125 $this->tpl->parseCurrentBlock();
130 $this->tpl->setCurrentBlock(
"item_command");
131 $ilCtrl->setParameterByClass(get_class($this),
'hide', $a_set[
"obj_id"]);
132 $this->tpl->setVariable(
"HREF_COMMAND", $ilCtrl->getLinkTargetByClass(get_class($this),
'hide'));
133 $this->tpl->setVariable(
"TXT_COMMAND", $lng->txt(
'trac_hide'));
134 $this->tpl->parseCurrentBlock();
136 if(!$this->is_anonymized)
140 $ilCtrl->setParameterByClass($ilCtrl->getCmdClass(),
'details_id',
$ref_id);
141 $this->tpl->setVariable(
"HREF_COMMAND", $ilCtrl->getLinkTargetByClass($ilCtrl->getCmdClass(),
'details'));
142 $ilCtrl->setParameterByClass($ilCtrl->getCmdClass(),
'details_id',
'');
143 $this->tpl->setVariable(
"TXT_COMMAND", $lng->txt(
'trac_participants'));
144 $this->tpl->parseCurrentBlock();
150 $worksheet->write($a_row, 0, $this->lng->txt(
"type"));
151 $worksheet->write($a_row, 1, $this->lng->txt(
"trac_title"));
161 $worksheet->write($a_row, 0, $this->lng->txt($a_set[
"type"]));
162 $worksheet->write($a_row, 1, $a_set[
"title"]);
163 $worksheet->write($a_row, 2, $a_set[
"status_not_attempted"]);
164 $worksheet->write($a_row, 3, $a_set[
"status_in_progress"]);
165 $worksheet->write($a_row, 4, $a_set[
"status_completed"]);
166 $worksheet->write($a_row, 5, $a_set[
"status_failed"]);
186 $a_csv->addColumn($this->lng->txt(
"type"));
187 $a_csv->addColumn($this->lng->txt(
"trac_title"));
198 $a_csv->addColumn($this->lng->txt($a_set[
"type"]));
199 $a_csv->addColumn($a_set[
"title"]);
200 $a_csv->addColumn($a_set[
"status_not_attempted"]);
201 $a_csv->addColumn($a_set[
"status_in_progress"]);
202 $a_csv->addColumn($a_set[
"status_completed"]);
203 $a_csv->addColumn($a_set[
"status_failed"]);