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"));
33 $this->
addColumn($this->lng->txt(
"trac_title"),
"title",
"30%");
35 include_once(
"Services/Tracking/classes/class.ilLPStatus.php");
40 foreach($all_status as $status => $column)
43 $caption =
"<img src=\"".ilLearningProgressBaseGUI::_getImagePathForStatus($status).
"\" alt=\"".$caption.
"\" title=\"".$caption.
"\" /> ".$caption;
45 $this->
addColumn($caption, $column,
"10%");
48 $this->
addColumn($this->lng->txt(
"path"),
"",
"20%");
49 $this->
addColumn($this->lng->txt(
"actions"),
"",
"10%");
52 $this->
setFormAction($ilCtrl->getFormActionByClass(get_class($this)));
53 $this->
setRowTemplate(
"tpl.lp_object_list_row.html",
"Services/Tracking");
54 #$this->disable("footer");
64 $this->
addMultiCommand(
"hideSelected", $lng->txt(
"trac_hide_selected"));
73 $obj_ids = $this->obj_ids;
82 include_once(
"./Services/Tracking/classes/class.ilTrQuery.php");
95 $this->tpl->setVariable(
"OBJ_ID", $a_set[
"obj_id"]);
97 $this->tpl->setVariable(
"ICON_ALT", $lng->txt($a_set[
"type"]));
98 $this->tpl->setVariable(
"TITLE_TEXT", $a_set[
"title"]);
100 $this->tpl->setVariable(
"STATUS_NOT_ATTEMPTED_VALUE", $a_set[
"status_not_attempted"]);
101 $this->tpl->setVariable(
"STATUS_IN_PROGRESS_VALUE", $a_set[
"status_in_progress"]);
102 $this->tpl->setVariable(
"STATUS_COMPLETED_VALUE", $a_set[
"status_completed"]);
103 $this->tpl->setVariable(
"STATUS_FAILED_VALUE", $a_set[
"status_failed"]);
109 $this->tpl->setCurrentBlock(
"item_path");
110 foreach(
$path as $path_item)
112 $this->tpl->setVariable(
"PATH_ITEM", $path_item);
113 $this->tpl->parseCurrentBlock();
118 $this->tpl->setCurrentBlock(
"item_command");
119 $ilCtrl->setParameterByClass(get_class($this),
'hide', $a_set[
"obj_id"]);
120 $this->tpl->setVariable(
"HREF_COMMAND", $ilCtrl->getLinkTargetByClass(get_class($this),
'hide'));
121 $this->tpl->setVariable(
"TXT_COMMAND", $lng->txt(
'trac_hide'));
122 $this->tpl->parseCurrentBlock();
124 if(!$this->is_anonymized)
128 $ilCtrl->setParameterByClass($ilCtrl->getCmdClass(),
'details_id',
$ref_id);
129 $this->tpl->setVariable(
"HREF_COMMAND", $ilCtrl->getLinkTargetByClass($ilCtrl->getCmdClass(),
'details'));
130 $ilCtrl->setParameterByClass($ilCtrl->getCmdClass(),
'details_id',
'');
131 $this->tpl->setVariable(
"TXT_COMMAND", $lng->txt(
'trac_participants'));
132 $this->tpl->parseCurrentBlock();
138 $worksheet->write($a_row, 0, $this->lng->txt(
"type"));
139 $worksheet->write($a_row, 1, $this->lng->txt(
"trac_title"));
149 $worksheet->write($a_row, 0, $this->lng->txt($a_set[
"type"]));
150 $worksheet->write($a_row, 1, $a_set[
"title"]);
151 $worksheet->write($a_row, 2, $a_set[
"status_not_attempted"]);
152 $worksheet->write($a_row, 3, $a_set[
"status_in_progress"]);
153 $worksheet->write($a_row, 4, $a_set[
"status_completed"]);
154 $worksheet->write($a_row, 5, $a_set[
"status_failed"]);
174 $a_csv->addColumn($this->lng->txt(
"type"));
175 $a_csv->addColumn($this->lng->txt(
"trac_title"));
186 $a_csv->addColumn($this->lng->txt($a_set[
"type"]));
187 $a_csv->addColumn($a_set[
"title"]);
188 $a_csv->addColumn($a_set[
"status_not_attempted"]);
189 $a_csv->addColumn($a_set[
"status_in_progress"]);
190 $a_csv->addColumn($a_set[
"status_completed"]);
191 $a_csv->addColumn($a_set[
"status_failed"]);