4 include_once(
"./Services/Tracking/classes/class.ilLPTableBaseGUI.php");
33 function __construct($a_parent_obj, $a_parent_cmd, $a_obj_id, $a_ref_id, $a_print_view =
false)
37 $this->
setId(
"troup");
38 $this->obj_id = $a_obj_id;
39 $this->ref_id = $a_ref_id;
42 $this->in_group = $tree->checkForParentType($this->ref_id,
"grp");
49 $this->in_course = $tree->checkForParentType($this->ref_id,
"crs");
58 $this->
parseTitle($a_obj_id,
"trac_participants");
72 $sort_id = (substr($c, 0, 4) ==
"udf_") ?
"" : $c;
74 $this->
addColumn($labels[$c][
"txt"], $sort_id);
79 $this->
addColumn($this->lng->txt(
"actions"),
"");
85 $this->
setFormAction($ilCtrl->getFormActionByClass(get_class($this)));
86 $this->
setRowTemplate(
"tpl.object_users_props_row.html",
"Services/Tracking");
110 if($this->selectable_columns)
116 $this->user_fields = $cols[1];
117 $this->selectable_columns = $cols[0];
131 include_once(
"./Services/Tracking/classes/class.ilTrQuery.php");
136 $check_agreement =
false;
140 include_once
"Services/PrivacySecurity/classes/class.ilPrivacySettings.php";
142 if($privacy->courseConfirmationRequired())
147 else if($this->in_group)
150 include_once
"Services/PrivacySecurity/classes/class.ilPrivacySettings.php";
152 if($privacy->groupConfirmationRequired())
170 if (count($tr_data[
"set"]) == 0 && $this->
getOffset() > 0)
187 $this->
setData($tr_data[
"set"]);
215 case "matriculation":
218 $this->filter[$column] = $item->getValue();
224 case 'status_changed':
226 $this->filter[$column] = $item->getDate();
231 $this->filter[$column] = $item->getDate();
237 $this->filter[$column] = $item->getValue();
242 $item->setOptions(array(
"" => $lng->txt(
"trac_all"),
"m" => $lng->txt(
"gender_m"),
"f" => $lng->txt(
"gender_f")));
243 $this->filter[
"gender"] = $item->getValue();
250 include_once(
"./Services/Utilities/classes/class.ilCountry.php");
253 $options[$c] = $lng->txt(
"meta_c_".$c);
256 $item->setOptions(array(
"" => $lng->txt(
"trac_all"))+
$options);
258 $this->filter[
"sel_country"] = $item->getValue();
262 include_once
"Services/Tracking/classes/class.ilLPStatus.php";
264 $item->setOptions(array(
"" => $lng->txt(
"trac_all"),
269 $this->filter[
"status"] = $item->getValue();
270 if($this->filter[
"status"])
272 $this->filter[
"status"]--;
278 $this->filter[
"language"] = $item->getValue();
281 case "spent_seconds":
283 $this->filter[
"spent_seconds"][
"from"] = $item->getCombinationItem(
"from")->getValueInSeconds();
284 $this->filter[
"spent_seconds"][
"to"] = $item->getCombinationItem(
"to")->getValueInSeconds();
299 if(!(
bool)
$data[
"privacy_conflict"])
314 $this->tpl->setCurrentBlock(
'warning_img');
316 $this->tpl->setVariable(
'WARNING_ALT', $this->lng->txt(
'trac_time_passed').$timing);
317 $this->tpl->parseCurrentBlock();
322 if($c ==
'login' && !$data[
"active"])
324 $this->tpl->setCurrentBlock(
'inactive_bl');
325 $this->tpl->setVariable(
'TXT_INACTIVE', $lng->txt(
"inactive"));
326 $this->tpl->parseCurrentBlock();
329 $val = $this->
parseValue($c, $data[$c],
"user");
336 $this->tpl->setCurrentBlock(
"user_field");
337 $this->tpl->setVariable(
"VAL_UF", $val);
338 $this->tpl->parseCurrentBlock();
341 $ilCtrl->setParameterByClass(
"illplistofobjectsgui",
"user_id",
$data[
"usr_id"]);
345 if(in_array($this->type, array(
"crs",
"grp",
"cat",
"fold")))
347 $this->tpl->setCurrentBlock(
"item_command");
348 $this->tpl->setVariable(
"HREF_COMMAND", $ilCtrl->getLinkTargetByClass(
"illplistofobjectsgui",
"userdetails"));
349 $this->tpl->setVariable(
"TXT_COMMAND", $lng->txt(
'details'));
350 $this->tpl->parseCurrentBlock();
353 $this->tpl->setCurrentBlock(
"item_command");
354 $this->tpl->setVariable(
"HREF_COMMAND", $ilCtrl->getLinkTargetByClass(
"illplistofobjectsgui",
"edituser"));
355 $this->tpl->setVariable(
"TXT_COMMAND", $lng->txt(
'edit'));
356 $this->tpl->parseCurrentBlock();
359 $ilCtrl->setParameterByClass(
"illplistofobjectsgui",
'user_id',
'');
368 $worksheet->write($a_row, $cnt, $labels[$c][
"txt"]);
380 $val = $this->
parseValue($c, $a_set[$c],
"user");
386 $worksheet->write($a_row, $cnt, $val);
396 $a_csv->addColumn($labels[$c][
"txt"]);
408 $val = $this->
parseValue($c, $a_set[$c],
"user");
414 $a_csv->addColumn($val);