4 include_once(
"./Services/Tracking/classes/class.ilLPTableBaseGUI.php");
36 function __construct($a_parent_obj, $a_parent_cmd, $a_obj_id, $a_ref_id, $a_print_view =
false)
40 $this->
setId(
"troup");
41 $this->obj_id = $a_obj_id;
42 $this->ref_id = $a_ref_id;
45 $this->in_group = $tree->checkForParentType($this->ref_id,
"grp");
52 $this->in_course = $tree->checkForParentType($this->ref_id,
"crs");
59 parent::__construct($a_parent_obj, $a_parent_cmd);
61 $this->
parseTitle($a_obj_id,
"trac_participants");
71 include_once
"Services/Mail/classes/class.ilMail.php";
72 $mail =
new ilMail($ilUser->getId());
73 if($rbacsystem->checkAccess(
"internal_mail", $mail->getMailObjectReferenceId()))
75 $this->
addMultiCommand(
"mailselectedusers", $this->lng->txt(
"send_mail"));
77 $this->lng->loadLanguageModule(
'user');
80 $this->lng->txt(
'clipboard_add_btn')
83 $this->has_multi =
true;
93 $sort_id = (substr($c, 0, 4) ==
"udf_") ?
"" : $c;
95 $this->
addColumn($labels[$c][
"txt"], $sort_id);
100 $this->
addColumn($this->lng->txt(
"actions"),
"");
106 $this->
setFormAction($ilCtrl->getFormActionByClass(get_class($this)));
107 $this->
setRowTemplate(
"tpl.object_users_props_row.html",
"Services/Tracking");
123 include_once
'./Services/Tracking/classes/class.ilLearningProgressAccess.php';
142 if($this->selectable_columns)
148 $this->user_fields = $cols[1];
149 $this->selectable_columns = $cols[0];
163 include_once(
"./Services/Tracking/classes/class.ilTrQuery.php");
168 $check_agreement =
false;
172 include_once
"Services/PrivacySecurity/classes/class.ilPrivacySettings.php";
174 if($privacy->courseConfirmationRequired())
179 else if($this->in_group)
182 include_once
"Services/PrivacySecurity/classes/class.ilPrivacySettings.php";
184 if($privacy->groupConfirmationRequired())
202 if (count($tr_data[
"set"]) == 0 && $this->
getOffset() > 0)
219 $this->
setData($tr_data[
"set"]);
247 case "matriculation":
253 $this->filter[
$column] = $item->getValue();
260 case 'status_changed':
262 $this->filter[
$column] = $item->getDate();
267 $this->filter[
$column] = $item->getDate();
273 $this->filter[
$column] = $item->getValue();
278 $item->setOptions(
array(
"" => $lng->txt(
"trac_all"),
"m" => $lng->txt(
"gender_m"),
"f" => $lng->txt(
"gender_f")));
279 $this->filter[
"gender"] = $item->getValue();
286 include_once(
"./Services/Utilities/classes/class.ilCountry.php");
289 $options[$c] = $lng->txt(
"meta_c_".$c);
292 $item->setOptions(
array(
"" => $lng->txt(
"trac_all"))+
$options);
294 $this->filter[
"sel_country"] = $item->getValue();
298 include_once
"Services/Tracking/classes/class.ilLPStatus.php";
300 $item->setOptions(
array(
"" => $lng->txt(
"trac_all"),
305 $this->filter[
"status"] = $item->getValue();
306 if($this->filter[
"status"])
308 $this->filter[
"status"]--;
314 $this->filter[
"language"] = $item->getValue();
317 case "spent_seconds":
321 $this->filter[
"spent_seconds"][
"from"] = $item->getCombinationItem(
"from")->getValueInSeconds();
322 $this->filter[
"spent_seconds"][
"to"] = $item->getCombinationItem(
"to")->getValueInSeconds();
338 $this->tpl->setVariable(
"USER_ID",
$data[
"usr_id"]);
343 if(!(
bool)
$data[
"privacy_conflict"])
358 $this->tpl->setCurrentBlock(
'warning_img');
360 $this->tpl->setVariable(
'WARNING_ALT', $this->lng->txt(
'trac_time_passed').$timing);
361 $this->tpl->parseCurrentBlock();
366 if($c ==
'login' && !$data[
"active"])
368 $this->tpl->setCurrentBlock(
'inactive_bl');
369 $this->tpl->setVariable(
'TXT_INACTIVE', $lng->txt(
"inactive"));
370 $this->tpl->parseCurrentBlock();
373 $val = $this->
parseValue($c, $data[$c], $this->type);
379 $this->tpl->setCurrentBlock(
'inactive_bl');
380 $this->tpl->setVariable(
'TXT_INACTIVE', $lng->txt(
"status_no_permission"));
381 $this->tpl->parseCurrentBlock();
387 $this->tpl->setCurrentBlock(
"user_field");
388 $this->tpl->setVariable(
"VAL_UF", $val);
389 $this->tpl->parseCurrentBlock();
392 $ilCtrl->setParameterByClass(
"illplistofobjectsgui",
"user_id",
$data[
"usr_id"]);
397 if($this->has_collection ||
398 $objDefinition->isContainer($this->type))
400 $this->tpl->setCurrentBlock(
"item_command");
401 $this->tpl->setVariable(
"HREF_COMMAND", $ilCtrl->getLinkTargetByClass(
"illplistofobjectsgui",
"userdetails"));
402 $this->tpl->setVariable(
"TXT_COMMAND", $lng->txt(
'details'));
403 $this->tpl->parseCurrentBlock();
408 $this->tpl->setCurrentBlock(
"item_command");
409 $this->tpl->setVariable(
"HREF_COMMAND", $ilCtrl->getLinkTargetByClass(
"illplistofobjectsgui",
"edituser"));
410 $this->tpl->setVariable(
"TXT_COMMAND", $lng->txt(
'edit'));
411 $this->tpl->parseCurrentBlock();
415 $ilCtrl->setParameterByClass(
"illplistofobjectsgui",
'user_id',
'');
424 $a_excel->
setCell($a_row, $cnt++, $labels[$c][
"txt"]);
437 $val = $this->
parseValue($c, $a_set[$c], $this->type);
443 $a_excel->
setCell($a_row, $cnt++, $val);
452 $a_csv->addColumn($labels[$c][
"txt"]);
464 $val = $this->
parseValue($c, $a_set[$c], $this->type);
470 $a_csv->addColumn($val);
const LP_STATUS_COMPLETED_NUM
fillHeaderExcel(ilExcel $a_excel, &$a_row)
getSelectableUserColumns($a_in_course=false, $a_in_group=false)
setExternalSorting($a_val)
Set external sorting.
fillRow($data)
Fill table row.
setDefaultOrderField($a_defaultorderfield)
Set Default order field.
setExportFormats(array $formats)
Set available export formats.
addFilterItemByMetaType($id, $type=self::FILTER_TEXT, $a_optional=false, $caption=NULL)
Add filter by standard type.
setPrintMode($a_value=false)
Toogle print mode.
setShowTemplates($a_value)
Toggle templates.
const LP_STATUS_NOT_ATTEMPTED
static _getStatusText($a_status, $a_lng=null)
Get status alt text.
setExternalSegmentation($a_val)
Set external segmentation.
resetOffset($a_in_determination=false)
Reset offset.
const LP_STATUS_IN_PROGRESS_NUM
fillRowCSV($a_csv, $a_set)
getItems()
Get user items.
parseTitle($a_obj_id, $action, $a_user_id=false)
fillRowExcel(ilExcel $a_excel, &$a_row, $a_set)
parseValue($id, $value, $type)
getOrderDirection()
Get order direction.
static checkPermission($a_permission, $a_ref_id, $a_user_id=null)
wrapper for rbac access checks
const FILTER_NUMBER_RANGE
const LP_STATUS_IN_PROGRESS
setDefaultOrderDirection($a_defaultorderdirection)
Set Default order direction.
const FILTER_DATETIME_RANGE
__construct($a_parent_obj, $a_parent_cmd, $a_obj_id, $a_ref_id, $a_print_view=false)
Constructor.
getColumnCoord($a_col)
Get column "name" from number.
TableGUI class for learning progress.
if(!is_array($argv)) $options
setBold($a_coords)
Set cell(s) to bold.
getSelectableColumns()
Get selectable columns.
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
Learning progress table: One object, rows: users, columns: properties Example: A course, rows: members, columns: name, status, mark, ...
This class handles base functions for mail handling.
const FILTER_DURATION_RANGE
static _lookupObjId($a_id)
addMultiCommand($a_cmd, $a_text)
Add Command button.
getSelectedColumns()
Get selected columns.
static stripSlashes($a_str, $a_strip_html=true, $a_allow="")
strip slashes if magic qoutes is enabled
setRowTemplate($a_template, $a_template_dir="")
Set row template.
Create styles array
The data for the language used.
static _lookupType($a_id, $a_reference=false)
lookup object type
static supportsMark($a_obj_type)
setCell($a_row, $a_col, $a_value)
Set cell value.
determineOffsetAndOrder($a_omit_offset=false)
Determine offset and order.
const LP_STATUS_NOT_ATTEMPTED_NUM
static getUserDataForObject($a_ref_id, $a_order_field="", $a_order_dir="", $a_offset=0, $a_limit=9999, array $a_filters=NULL, array $a_additional_fields=NULL, $check_agreement=false, $privacy_fields=NULL)
Get all user-based tracking data for object.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
static supportsSpentSeconds($a_obj_type)
showTimingsWarning($a_ref_id, $a_user_id)
getPrintMode()
Get print mode.
setEnableHeader($a_enableheader)
Set Enable Header.
static getCountryCodes()
Get country codes (DIN EN 3166-1)
static _getInstance()
Get instance of ilPrivacySettings.
setSelectAllCheckbox($a_select_all_checkbox)
Set the name of the checkbox that should be toggled with a select all button.
setMaxCount($a_max_count)
set max.
getCurrentFilter($as_query=false)
setEnableTitle($a_enabletitle)
Set Enable Title.
const LP_STATUS_COMPLETED
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.
const LP_STATUS_FAILED_NUM