4 include_once(
"./Services/Tracking/classes/class.ilLPTableBaseGUI.php");
34 function __construct($a_parent_obj, $a_parent_cmd, $a_obj_id, $a_ref_id, $a_print_view =
false)
38 $this->
setId(
"troup");
39 $this->obj_id = $a_obj_id;
40 $this->ref_id = $a_ref_id;
43 $this->in_group = $tree->checkForParentType($this->ref_id,
"grp");
50 $this->in_course = $tree->checkForParentType($this->ref_id,
"crs");
59 $this->
parseTitle($a_obj_id,
"trac_participants");
73 $sort_id = (substr($c, 0, 4) ==
"udf_") ?
"" : $c;
75 $this->
addColumn($labels[$c][
"txt"], $sort_id);
80 $this->
addColumn($this->lng->txt(
"actions"),
"");
86 $this->
setFormAction($ilCtrl->getFormActionByClass(get_class($this)));
87 $this->
setRowTemplate(
"tpl.object_users_props_row.html",
"Services/Tracking");
103 $this->has_edit = $rbacsystem->checkAccess(
'edit_learning_progress',$this->ref_id);
114 if($this->selectable_columns)
120 $this->user_fields = $cols[1];
121 $this->selectable_columns = $cols[0];
135 include_once(
"./Services/Tracking/classes/class.ilTrQuery.php");
140 $check_agreement =
false;
144 include_once
"Services/PrivacySecurity/classes/class.ilPrivacySettings.php";
146 if($privacy->courseConfirmationRequired())
151 else if($this->in_group)
154 include_once
"Services/PrivacySecurity/classes/class.ilPrivacySettings.php";
156 if($privacy->groupConfirmationRequired())
174 if (count($tr_data[
"set"]) == 0 && $this->
getOffset() > 0)
191 $this->
setData($tr_data[
"set"]);
219 case "matriculation":
222 $this->filter[$column] = $item->getValue();
228 case 'status_changed':
230 $this->filter[$column] = $item->getDate();
235 $this->filter[$column] = $item->getDate();
241 $this->filter[$column] = $item->getValue();
246 $item->setOptions(array(
"" => $lng->txt(
"trac_all"),
"m" => $lng->txt(
"gender_m"),
"f" => $lng->txt(
"gender_f")));
247 $this->filter[
"gender"] = $item->getValue();
254 include_once(
"./Services/Utilities/classes/class.ilCountry.php");
257 $options[$c] = $lng->txt(
"meta_c_".$c);
260 $item->setOptions(array(
"" => $lng->txt(
"trac_all"))+
$options);
262 $this->filter[
"sel_country"] = $item->getValue();
266 include_once
"Services/Tracking/classes/class.ilLPStatus.php";
268 $item->setOptions(array(
"" => $lng->txt(
"trac_all"),
273 $this->filter[
"status"] = $item->getValue();
274 if($this->filter[
"status"])
276 $this->filter[
"status"]--;
282 $this->filter[
"language"] = $item->getValue();
285 case "spent_seconds":
287 $this->filter[
"spent_seconds"][
"from"] = $item->getCombinationItem(
"from")->getValueInSeconds();
288 $this->filter[
"spent_seconds"][
"to"] = $item->getCombinationItem(
"to")->getValueInSeconds();
303 if(!(
bool)
$data[
"privacy_conflict"])
318 $this->tpl->setCurrentBlock(
'warning_img');
320 $this->tpl->setVariable(
'WARNING_ALT', $this->lng->txt(
'trac_time_passed').$timing);
321 $this->tpl->parseCurrentBlock();
326 if($c ==
'login' && !$data[
"active"])
328 $this->tpl->setCurrentBlock(
'inactive_bl');
329 $this->tpl->setVariable(
'TXT_INACTIVE', $lng->txt(
"inactive"));
330 $this->tpl->parseCurrentBlock();
333 $val = $this->
parseValue($c, $data[$c],
"user");
339 $this->tpl->setCurrentBlock(
'inactive_bl');
340 $this->tpl->setVariable(
'TXT_INACTIVE', $lng->txt(
"status_no_permission"));
341 $this->tpl->parseCurrentBlock();
347 $this->tpl->setCurrentBlock(
"user_field");
348 $this->tpl->setVariable(
"VAL_UF", $val);
349 $this->tpl->parseCurrentBlock();
352 $ilCtrl->setParameterByClass(
"illplistofobjectsgui",
"user_id",
$data[
"usr_id"]);
356 if(in_array($this->type, array(
"crs",
"grp",
"cat",
"fold")))
358 $this->tpl->setCurrentBlock(
"item_command");
359 $this->tpl->setVariable(
"HREF_COMMAND", $ilCtrl->getLinkTargetByClass(
"illplistofobjectsgui",
"userdetails"));
360 $this->tpl->setVariable(
"TXT_COMMAND", $lng->txt(
'details'));
361 $this->tpl->parseCurrentBlock();
366 $this->tpl->setCurrentBlock(
"item_command");
367 $this->tpl->setVariable(
"HREF_COMMAND", $ilCtrl->getLinkTargetByClass(
"illplistofobjectsgui",
"edituser"));
368 $this->tpl->setVariable(
"TXT_COMMAND", $lng->txt(
'edit'));
369 $this->tpl->parseCurrentBlock();
373 $ilCtrl->setParameterByClass(
"illplistofobjectsgui",
'user_id',
'');
382 $worksheet->write($a_row, $cnt, $labels[$c][
"txt"]);
394 $val = $this->
parseValue($c, $a_set[$c],
"user");
400 $worksheet->write($a_row, $cnt, $val);
410 $a_csv->addColumn($labels[$c][
"txt"]);
422 $val = $this->
parseValue($c, $a_set[$c],
"user");
428 $a_csv->addColumn($val);