ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
class.ilTrMatrixTableGUI.php
Go to the documentation of this file.
1<?php
2/* Copyright (c) 1998-2010 ILIAS open source, Extended GPL, see docs/LICENSE */
3
4include_once("./Services/Tracking/classes/class.ilLPTableBaseGUI.php");
5
15{
16 protected $obj_ids = null;
17 protected $objective_ids = [];
18 protected $sco_ids = [];
19 protected $subitem_ids = [];
20 protected $in_course; // int
21 protected $in_group; // int
22 protected $privacy_fields = [];
23 protected $privacy_cols = [];
24 protected $has_multi; // bool
25
29 public function __construct($a_parent_obj, $a_parent_cmd, $ref_id)
30 {
31 global $DIC;
32
33 $ilCtrl = $DIC['ilCtrl'];
34 $lng = $DIC['lng'];
35 $tree = $DIC['tree'];
36 $ilUser = $DIC['ilUser'];
37 $rbacsystem = $DIC['rbacsystem'];
38
39 $this->setId("trsmtx_" . $ref_id);
40 $this->ref_id = $ref_id;
41 $this->obj_id = ilObject::_lookupObjId($ref_id);
42 $this->type = ilObject::_lookupType($this->obj_id); // #17188
43
44 $this->in_group = $tree->checkForParentType($this->ref_id, "grp");
45 if ($this->in_group) {
46 $this->in_group = ilObject::_lookupObjId($this->in_group);
47 } else {
48 $this->in_course = $tree->checkForParentType($this->ref_id, "crs");
49 if ($this->in_course) {
50 $this->in_course = ilObject::_lookupObjId($this->in_course);
51 }
52 }
53
54 // has to be before constructor to work
55 $this->initFilter();
56
57 parent::__construct($a_parent_obj, $a_parent_cmd);
58
59 $this->parseTitle($this->obj_id, "trac_matrix");
60
61 $this->setEnableHeader(true);
62 $this->setFormAction($ilCtrl->getFormActionByClass(get_class($this)));
63 $this->setRowTemplate("tpl.user_object_matrix_row.html", "Services/Tracking");
64 $this->setDefaultOrderField("login");
65 $this->setDefaultOrderDirection("asc");
66 $this->setShowTemplates(true);
67
68 // see ilObjCourseGUI::addMailToMemberButton()
69 include_once "Services/Mail/classes/class.ilMail.php";
70 $mail = new ilMail($ilUser->getId());
71 if ($rbacsystem->checkAccess("internal_mail", $mail->getMailObjectReferenceId())) {
72 $this->addMultiCommand("mailselectedusers", $this->lng->txt("send_mail"));
73 }
74
75 $this->lng->loadLanguageModule('user');
76 $this->addMultiCommand(
77 'addToClipboard',
78 $this->lng->txt('clipboard_add_btn')
79 );
80 $this->addColumn("", "", 1);
81 $this->has_multi = true;
82
83 $this->addColumn($this->lng->txt("login"), "login");
84
85 $labels = $this->getSelectableColumns();
86 $selected = $this->getSelectedColumns();
87 foreach ($selected as $c) {
88 $title = $labels[$c]["txt"];
89
90 if (isset($labels[$c]["no_permission"]) && (bool) $labels[$c]["no_permission"]) {
91 $title .= " (" . $lng->txt("status_no_permission") . ")";
92 }
93
94 $tooltip = array();
95 if (isset($labels[$c]["icon"])) {
96 $alt = $lng->txt($labels[$c]["type"]);
97 $icon = '<img class="ilListItemIcon" src="' . $labels[$c]["icon"] . '" alt="' . $alt . '" />';
98 if (sizeof($selected) > 5) {
99 $tooltip[] = $title;
100 $title = $icon;
101 } else {
102 $title = $icon . ' ' . $title;
103 }
104 if ($labels[$c]["path"]) {
105 $tooltip[] = $labels[$c]["path"];
106 }
107 }
108
109 if (isset($labels[$c]["id"])) {
110 $sort_id = $labels[$c]["id"];
111 } else {
112 // list cannot be sorted by udf fields (separate query)
113 $sort_id = (substr($c, 0, 4) == "udf_") ? "" : $c;
114 }
115
116 $this->addColumn($title, $sort_id, "", false, "", implode(" - ", $tooltip));
117 }
118
119 $this->setExportFormats(array(self::EXPORT_CSV, self::EXPORT_EXCEL));
120 }
121
122 public function initFilter()
123 {
124 global $DIC;
125
126 $lng = $DIC['lng'];
127
129 $this->filter["name"] = $item->getValue();
130
131 // #14949 - is called before constructor, so we have to do it ourselves
132 if (isset($_GET[$this->prefix . "_tpl"])) {
133 $this->filter["name"] = null;
134 $this->SetFilterValue($item, null);
135 }
136 }
137
138 public function getSelectableColumns()
139 {
140 global $DIC;
141
142 $ilObjDataCache = $DIC['ilObjDataCache'];
143 $rbacsystem = $DIC['rbacsystem'];
144
145 $user_cols = $this->getSelectableUserColumns($this->in_course, $this->in_group);
146
147 if ($this->obj_ids === null) {
148 // we cannot use the selected columns because they are not ready yet
149 // so we use all available columns, should be ok anyways
150 $this->obj_ids = $this->getItems(array_keys($user_cols[0]), $user_cols[1]);
151 }
152 if (is_array($this->obj_ids)) {
153 $tmp_cols = array();
154 foreach ($this->obj_ids as $obj_id) {
155 if ($obj_id == $this->obj_id) {
156 $parent = array("txt" => $this->lng->txt("status"),
157 "default" => true);
158 } else {
159 $no_perm = false;
160
161 $ref_id = $this->ref_ids[$obj_id];
162 include_once './Services/Tracking/classes/class.ilLearningProgressAccess.php';
163 if ($ref_id &&
164 !ilLearningProgressAccess::checkPermission('read_learning_progress', $ref_id)) {
165 $no_perm = true;
166 $this->privacy_cols[] = $obj_id;
167 }
168
169 $title = $ilObjDataCache->lookupTitle($obj_id);
170 $type = $ilObjDataCache->lookupType($obj_id);
171 $icon = ilObject::_getIcon($obj_id, "tiny", $type);
172 if ($type == "sess") {
173 include_once "Modules/Session/classes/class.ilObjSession.php";
174 $sess = new ilObjSession($obj_id, false);
175 $title = $sess->getPresentationTitle();
176 }
177
178 // #16453
179 $relpath = null;
180 include_once './Services/Tree/classes/class.ilPathGUI.php';
181 $path = new ilPathGUI();
182 $path = $path->getPath($this->ref_id, $ref_id);
183 if ($path) {
184 $relpath = $this->lng->txt('path') . ': ' . $path;
185 }
186
187 $tmp_cols[strtolower($title) . "#~#obj_" . $obj_id] = array(
188 "txt" => $title,
189 "icon" => $icon,
190 "type" => $type,
191 "default" => true,
192 "no_permission" => $no_perm,
193 "path" => $relpath);
194 }
195 }
196 if (sizeof($this->objective_ids)) {
197 foreach ($this->objective_ids as $obj_id => $title) {
198 $tmp_cols[strtolower($title) . "#~#objtv_" . $obj_id] = array("txt" => $title, "default" => true);
199 }
200 }
201 if (sizeof($this->sco_ids)) {
202 foreach ($this->sco_ids as $obj_id => $title) {
203 $icon = ilUtil::getTypeIconPath("sco", $obj_id, "tiny");
204 $tmp_cols[strtolower($title) . "#~#objsco_" . $obj_id] = array("txt" => $title, "icon" => $icon, "default" => true);
205 }
206 }
207 if (sizeof($this->subitem_ids)) {
208 foreach ($this->subitem_ids as $obj_id => $title) {
209 include_once("./Services/Tracking/classes/class.ilTrQuery.php");
210 $icon = ilUtil::getTypeIconPath(ilTrQuery::getSubItemType($this->obj_id), $obj_id, "tiny");
211 $tmp_cols[strtolower($title) . "#~#objsub_" . $obj_id] = array("txt" => $title, "icon" => $icon, "default" => true);
212 }
213 }
214
215 // alex, 5 Nov 2011: Do not sort SCORM items or "chapters"
216 if (!sizeof($this->sco_ids) && !sizeof($this->subitem_ids)) {
217 ksort($tmp_cols);
218 }
219 foreach ($tmp_cols as $id => $def) {
220 $id = explode('#~#', $id);
221 $columns[$id[1]] = $def;
222 }
223 unset($tmp_cols);
224
225 if ($parent) {
226 $columns["obj_" . $this->obj_id] = $parent;
227 }
228 }
229
230 unset($user_cols[0]["status"]);
231 unset($user_cols[0]["login"]);
232 foreach ($user_cols[0] as $col_id => $col_def) {
233 if (!isset($columns[$col_id])) {
234 // these are all additional fields, no default
235 $col_def["default"] = false;
236 $columns[$col_id] = $col_def;
237 }
238 }
239
240 return $columns;
241 }
242
243 public function getItems(array $a_user_fields, array $a_privary_fields = null)
244 {
245 // #17081
246 if ($this->restore_filter) {
247 $name = $this->restore_filter_values["name"];
248 $this->SetFilterValue($this->filters[0], $name);
249 $this->filter["name"] = $name;
250 }
251
252 include_once("./Services/Tracking/classes/class.ilTrQuery.php");
253 $collection = ilTrQuery::getObjectIds($this->obj_id, $this->ref_id, true);
254 if ($collection["object_ids"]) {
255 // we need these for the timing warnings
256 $this->ref_ids = $collection["ref_ids"];
257
258 // only if object is [part of] course/group
259 $check_agreement = false;
260 if ($this->in_course) {
261 // privacy (if course agreement is activated)
262 include_once "Services/PrivacySecurity/classes/class.ilPrivacySettings.php";
264 if ($privacy->courseConfirmationRequired()) {
265 $check_agreement = $this->in_course;
266 }
267 } elseif ($this->in_group) {
268 // privacy (if group agreement is activated)
269 include_once "Services/PrivacySecurity/classes/class.ilPrivacySettings.php";
271 if ($privacy->groupConfirmationRequired()) {
272 $check_agreement = $this->in_group;
273 }
274 }
275
276 $data = ilTrQuery::getUserObjectMatrix($this->ref_id, $collection["object_ids"], $this->filter["name"], $a_user_fields, $a_privary_fields, $check_agreement);
277 if ($collection["objectives_parent_id"] && $data["users"]) {
278 // sub-items: learning objectives
279 $objectives = ilTrQuery::getUserObjectiveMatrix($collection["objectives_parent_id"], $data["users"]);
280
281 $this->objective_ids = array();
282
283 foreach ($objectives as $user_id => $objectives) {
284 if (isset($data["set"][$user_id])) {
285 foreach ($objectives as $objective_id => $status) {
286 $obj_id = "objtv_" . $objective_id;
287 $data["set"][$user_id][$obj_id] = $status;
288
289 if (!in_array($obj_id, $this->objective_ids)) {
290 $this->objective_ids[$objective_id] = ilCourseObjective::lookupObjectiveTitle($objective_id);
291 }
292 }
293 }
294 }
295 }
296
297 // sub-items: SCOs
298 if ($collection["scorm"] && $data["set"]) {
299 $this->sco_ids = array();
300 foreach (array_keys($data["set"]) as $user_id) {
301 foreach ($collection["scorm"]["scos"] as $sco) {
302 if (!in_array($sco, $this->sco_ids)) {
303 $this->sco_ids[$sco] = $collection["scorm"]["scos_title"][$sco];
304 }
305
306 // alex, 5 Nov 2011: we got users being in failed and in
307 // completed status, I changed the setting in: first check failed
308 // then check completed since failed should superseed completed
309 // (before completed has been checked before failed)
311 if (in_array($user_id, $collection["scorm"]["failed"][$sco])) {
313 } elseif (in_array($user_id, $collection["scorm"]["completed"][$sco])) {
315 } elseif (in_array($user_id, $collection["scorm"]["in_progress"][$sco])) {
317 }
318
319 $obj_id = "objsco_" . $sco;
320 $data["set"][$user_id][$obj_id] = $status;
321 }
322 }
323 }
324
325 // sub-items: generic, e.g. lm chapter
326 if ($collection["subitems"] && $data["set"]) {
327 foreach (array_keys($data["set"]) as $user_id) {
328 foreach ($collection["subitems"]["items"] as $item_id) {
329 $this->subitem_ids[$item_id] = $collection["subitems"]["item_titles"][$item_id];
330
332 if (in_array($user_id, $collection["subitems"]["completed"][$item_id])) {
334 } elseif (is_array($collection["subitems"]["in_progress"]) &&
335 in_array($user_id, $collection["subitems"]["in_progress"][$item_id])) {
337 }
338
339 $obj_id = "objsub_" . $item_id;
340 $data["set"][$user_id][$obj_id] = $status;
341 }
342 }
343 }
344
345 // percentage export
346 if ($data["set"]) {
347 $this->perc_map = array();
348 foreach ($data["set"] as $row_idx => $row) {
349 foreach ($row as $column => $value) {
350 if (substr($column, -5) == "_perc") {
351 $obj_id = explode("_", $column);
352 $obj_id = (int) $obj_id[1];
353
354 // #18673
355 if (!$this->isPercentageAvailable($obj_id) ||
356 !(int) $value) {
357 unset($data["set"][$row_idx][$column]);
358 } else {
359 $this->perc_map[$obj_id] = true;
360 }
361 }
362 }
363 }
364 }
365
366 $this->setMaxCount($data["cnt"]);
367 $this->setData($data["set"]);
368
369 return $collection["object_ids"];
370 }
371 return false;
372 }
373
374 public function fillRow($a_set)
375 {
376 global $DIC;
377
378 $lng = $DIC['lng'];
379
380 if ($this->has_multi) {
381 $this->tpl->setVariable("USER_ID", $a_set["usr_id"]);
382 }
383
384 foreach ($this->getSelectedColumns() as $c) {
385 switch ($c) {
386 case (substr($c, 0, 4) == "obj_"):
387 $obj_id = substr($c, 4);
388
389 // object without read-lp-permission
390 if (in_array($obj_id, $this->privacy_cols) ||
391 $a_set["privacy_conflict"]) {
392 $this->tpl->setCurrentBlock("objects");
393 $this->tpl->setVariable("VAL_STATUS", "&nbsp;");
394 $this->tpl->parseCurrentBlock();
395 break;
396 }
397
398 $status = isset($a_set[$c])
399 ? (int) $a_set[$c]
401 $percentage = isset($a_set[$c . "_perc"])
402 ? (int) $a_set[$c . "_perc"]
403 : null;
404
406 $timing = $this->showTimingsWarning($this->ref_ids[$obj_id], $a_set["usr_id"]);
407 if ($timing) {
408 if ($timing !== true) {
409 $timing = ": " . ilDatePresentation::formatDate(new ilDate($timing, IL_CAL_UNIX));
410 } else {
411 $timing = "";
412 }
413 $this->tpl->setCurrentBlock('warning_img');
414 $this->tpl->setVariable('WARNING_IMG', ilUtil::getImagePath('time_warn.svg'));
415 $this->tpl->setVariable('WARNING_ALT', $this->lng->txt('trac_time_passed') . $timing);
416 $this->tpl->parseCurrentBlock();
417 }
418 }
419
420 $this->tpl->setCurrentBlock("objects");
421 $this->tpl->setVariable("VAL_STATUS", $this->parseValue("status", $status, ""));
422 $this->tpl->setVariable("VAL_PERCENTAGE", $this->parseValue("percentage", $percentage, ""));
423 $this->tpl->parseCurrentBlock();
424 break;
425
426
427 case (substr($c, 0, 6) == "objtv_"):
428 case (substr($c, 0, 7) == "objsco_"):
429 case (substr($c, 0, 7) == "objsub_"):
430 $status = isset($a_set[$c])
431 ? (int) $a_set[$c]
433
434 $this->tpl->setCurrentBlock("objects");
435 if (!$a_set["privacy_conflict"]) {
436 $this->tpl->setVariable("VAL_STATUS", $this->parseValue("status", $status, ""));
437 } else {
438 $this->tpl->setVariable("VAL_STATUS", "&nbsp;");
439 }
440 $this->tpl->parseCurrentBlock();
441 break;
442
443 default:
444 $this->tpl->setCurrentBlock("user_field");
445 if (!$a_set["privacy_conflict"]) {
446 $this->tpl->setVariable("VAL_UF", $this->parseValue($c, $a_set[$c], ""));
447 } else {
448 $this->tpl->setVariable("VAL_UF", "&nbsp;");
449 }
450 $this->tpl->parseCurrentBlock();
451 break;
452 }
453 }
454
455 // #7694
456 if (!$a_set["active"] || $a_set["privacy_conflict"]) {
457 $mess = array();
458 if ($a_set["privacy_conflict"]) {
459 $mess[] = $lng->txt("status_no_permission");
460 } elseif (!$a_set["active"]) {
461 $mess[] = $lng->txt("inactive");
462 }
463 $this->tpl->setCurrentBlock('inactive_bl');
464 $this->tpl->setVariable('TXT_INACTIVE', implode(", ", $mess));
465 $this->tpl->parseCurrentBlock();
466 }
467
468 $login = !$a_set["privacy_conflict"]
469 ? $a_set["login"]
470 : "&nbsp;";
471 $this->tpl->setVariable("VAL_LOGIN", $login);
472 }
473
474 protected function fillHeaderExcel(ilExcel $a_excel, &$a_row)
475 {
476 global $DIC;
477
478 $ilObjDataCache = $DIC['ilObjDataCache'];
479
480 $a_excel->setCell($a_row, 0, $this->lng->txt("login"));
481
482 $labels = $this->getSelectableColumns();
483 $cnt = 1;
484 foreach ($this->getSelectedColumns() as $c) {
485 if (substr($c, 0, 4) == "obj_") {
486 $obj_id = substr($c, 4);
487
488 $type = $ilObjDataCache->lookupType($obj_id);
489 if ($DIC['objDefinition']->isPlugin($type)) {
490 $type_text = ilObjectPlugin::lookupTxtById($type, 'obj_' . $type);
491 } else {
492 $type_text = $this->lng->txt($type);
493 }
494
495 $a_excel->setCell($a_row, $cnt, "(" . $type_text . ") " . $labels[$c]["txt"]);
496
497 if (is_array($this->perc_map) && $this->perc_map[$obj_id]) {
498 $cnt++;
499 $a_excel->setCell($a_row, $cnt, $this->lng->txt("trac_percentage") . " (%)");
500 }
501 } else {
502 $a_excel->setCell($a_row, $cnt, $labels[$c]["txt"]);
503 }
504 $cnt++;
505 }
506
507 $a_excel->setBold("A" . $a_row . ":" . $a_excel->getColumnCoord($cnt) . $a_row);
508 }
509
510 protected function fillRowExcel(ilExcel $a_excel, &$a_row, $a_set)
511 {
512 $a_excel->setCell($a_row, 0, $a_set["login"]);
513
514 $cnt = 1;
515 foreach ($this->getSelectedColumns() as $c) {
516 switch ($c) {
517 case (substr($c, 0, 4) == "obj_"):
518 $obj_id = substr($c, 4);
519 $val = ilLearningProgressBaseGUI::_getStatusText((int) $a_set[$c]);
520 $a_excel->setCell($a_row, $cnt, $val);
521
522 if (is_array($this->perc_map) && $this->perc_map[$obj_id]) {
523 $cnt++;
524 $perc = (int) $a_set[$c . "_perc"];
525 $perc = !$perc
526 ? null
527 : $perc . "%";
528 $a_excel->setCell($a_row, $cnt, $perc);
529 }
530 break;
531
532 case (substr($c, 0, 6) == "objtv_"):
533 case (substr($c, 0, 7) == "objsco_"):
534 case (substr($c, 0, 7) == "objsub_"):
535 $val = ilLearningProgressBaseGUI::_getStatusText((int) $a_set[$c]);
536 $a_excel->setCell($a_row, $cnt, $val);
537 break;
538
539 /* #14142
540 case "last_access":
541 case "spent_seconds":
542 case "status_changed":
543 */
544 default:
545 $val = $this->parseValue($c, $a_set[$c], "user");
546 $a_excel->setCell($a_row, $cnt, $val);
547 break;
548
549 }
550 $cnt++;
551 }
552 }
553
554 protected function fillHeaderCSV($a_csv)
555 {
556 global $DIC;
557
558 $ilObjDataCache = $DIC['ilObjDataCache'];
559
560 $a_csv->addColumn($this->lng->txt("login"));
561
562 $labels = $this->getSelectableColumns();
563 foreach ($this->getSelectedColumns() as $c) {
564 if (substr($c, 0, 4) == "obj_") {
565 $obj_id = substr($c, 4);
566
567 $type = $ilObjDataCache->lookupType($obj_id);
568 if ($DIC['objDefinition']->isPlugin($type)) {
569 $type_text = ilObjectPlugin::lookupTxtById($type, 'obj_' . $type);
570 } else {
571 $type_text = $this->lng->txt($type);
572 }
573
574 $a_csv->addColumn("(" . $type_text . ") " . $labels[$c]["txt"]);
575
576 if (is_array($this->perc_map) && $this->perc_map[$obj_id]) {
577 $a_csv->addColumn($this->lng->txt("trac_percentage") . " (%)");
578 }
579 } else {
580 $a_csv->addColumn($labels[$c]["txt"]);
581 }
582 }
583
584 $a_csv->addRow();
585 }
586
587 protected function fillRowCSV($a_csv, $a_set)
588 {
589 $a_csv->addColumn($a_set["login"]);
590
591 foreach ($this->getSelectedColumns() as $c) {
592 switch ($c) {
593 case (substr($c, 0, 4) == "obj_"):
594 $obj_id = substr($c, 4);
595 $val = ilLearningProgressBaseGUI::_getStatusText((int) $a_set[$c]);
596 $a_csv->addColumn($val);
597
598 if (is_array($this->perc_map) && $this->perc_map[$obj_id]) {
599 $perc = (int) $a_set[$c . "_perc"];
600 if (!$perc) {
601 $perc = null;
602 }
603 $a_csv->addColumn($perc);
604 }
605 break;
606
607 case (substr($c, 0, 6) == "objtv_"):
608 case (substr($c, 0, 7) == "objsco_"):
609 case (substr($c, 0, 7) == "objsub_"):
610 $val = ilLearningProgressBaseGUI::_getStatusText((int) $a_set[$c]);
611 $a_csv->addColumn($val);
612 break;
613
614 /* #14142
615 case "last_access":
616 case "spent_seconds":
617 case "status_changed":
618 */
619 default:
620 $val = $this->parseValue($c, $a_set[$c], "user");
621 $a_csv->addColumn($val);
622 break;
623
624 }
625 }
626
627 $a_csv->addRow();
628 }
629}
if(! $in) $columns
Definition: Utf8Test.php:45
$_GET["client_id"]
An exception for terminatinating execution or to throw for unit testing.
const IL_CAL_UNIX
static lookupObjectiveTitle($a_objective_id, $a_add_description=false)
static formatDate(ilDateTime $date, $a_skip_day=false, $a_include_wd=false, $include_seconds=false)
Format a date @access public.
Class for single dates.
setCell($a_row, $a_col, $a_value, $a_datatype=null)
Set cell value.
setBold($a_coords)
Set cell(s) to bold.
getColumnCoord($a_col)
Get column "name" from number.
const LP_STATUS_COMPLETED_NUM
const LP_STATUS_IN_PROGRESS_NUM
const LP_STATUS_NOT_ATTEMPTED_NUM
const LP_STATUS_FAILED_NUM
TableGUI class for learning progress.
parseValue($id, $value, $type)
showTimingsWarning($a_ref_id, $a_user_id)
getSelectableUserColumns($a_in_course=false, $a_in_group=false)
parseTitle($a_obj_id, $action, $a_user_id=false)
static checkPermission($a_permission, $a_ref_id, $a_user_id=null)
wrapper for rbac access checks
static _getStatusText($a_status, $a_lng=null)
Get status alt text.
static lookupTxtById($plugin_id, $lang_var)
static _lookupObjId($a_id)
static _lookupType($a_id, $a_reference=false)
lookup object type
Creates a path for a start and endnode.
static _getInstance()
Get instance of ilPrivacySettings.
getSelectedColumns()
Get selected columns.
setEnableHeader($a_enableheader)
Set Enable Header.
setExportFormats(array $formats)
Set available export formats.
SetFilterValue(ilFormPropertyGUI $a_item, $a_value)
Set current filter value.
setData($a_data)
set table data @access public
setRowTemplate($a_template, $a_template_dir="")
Set row template.
addMultiCommand($a_cmd, $a_text)
Add Command button.
setDefaultOrderField($a_defaultorderfield)
Set Default order field.
addColumn( $a_text, $a_sort_field="", $a_width="", $a_is_checkbox_action_column=false, $a_class="", $a_tooltip="", $a_tooltip_with_html=false)
Add a column to the header.
addFilterItemByMetaType($id, $type=self::FILTER_TEXT, $a_optional=false, $caption=null)
Add filter by standard type.
setId($a_val)
Set id.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
setDefaultOrderDirection($a_defaultorderdirection)
Set Default order direction.
setShowTemplates($a_value)
Toggle templates.
setMaxCount($a_max_count)
set max.
fillRowExcel(ilExcel $a_excel, &$a_row, $a_set)
Excel Version of Fill Row.
fillRowCSV($a_csv, $a_set)
CSV Version of Fill Row.
fillRow($a_set)
Standard Version of Fill Row.
fillHeaderCSV($a_csv)
CSV Version of Fill Header.
__construct($a_parent_obj, $a_parent_cmd, $ref_id)
Constructor.
fillHeaderExcel(ilExcel $a_excel, &$a_row)
Excel Version of Fill Header.
getItems(array $a_user_fields, array $a_privary_fields=null)
getSelectableColumns()
Get selectable columns.
static getUserObjectMatrix( $a_parent_ref_id, $a_obj_ids, $a_user_filter=null, array $a_additional_fields=null, array $a_privacy_fields=null, $a_check_agreement=null)
Get status matrix for users on objects.
static getUserObjectiveMatrix($a_parent_obj_id, $a_users)
static getObjectIds($a_parent_obj_id, $a_parent_ref_id=false, $use_collection=true, $a_refresh_status=true, $a_user_ids=null)
Get (sub)objects for given object, also handles learning objectives (course only)
static getSubItemType($a_parent_obj_id)
Get sub-item object type for parent.
static getTypeIconPath($a_type, $a_obj_id, $a_size='small')
Get type icon path path Return image path for icon_xxx.pngs Or (if enabled) path to custom icon Depre...
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
$login
Definition: cron.php:13
global $ilCtrl
Definition: ilias.php:18
if($format !==null) $name
Definition: metadata.php:230
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
$type
$ilUser
Definition: imgupload.php:18
$DIC
Definition: xapitoken.php:46