4include_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";
 
   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");
 
  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();
 
  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);
 
An exception for terminatinating execution or to throw for unit testing.
static getCountryCodes()
Get country codes (DIN EN 3166-1)
setCell($a_row, $a_col, $a_value)
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_COMPLETED
const LP_STATUS_IN_PROGRESS_NUM
const LP_STATUS_NOT_ATTEMPTED_NUM
const LP_STATUS_FAILED_NUM
const LP_STATUS_NOT_ATTEMPTED
const LP_STATUS_IN_PROGRESS
TableGUI class for learning progress.
parseValue($id, $value, $type)
getCurrentFilter($as_query=false)
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.
This class handles base functions for mail handling.
static supportsMark($a_obj_type)
static supportsSpentSeconds($a_obj_type)
static _lookupObjId($a_id)
static _lookupType($a_id, $a_reference=false)
lookup object type
static _getInstance()
Get instance of ilPrivacySettings.
getSelectedColumns()
Get selected columns.
setEnableHeader($a_enableheader)
Set Enable Header.
setExternalSorting($a_val)
Set external sorting.
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.
setExportFormats(array $formats)
Set available export formats.
setPrintMode($a_value=false)
Toogle print mode.
determineOffsetAndOrder($a_omit_offset=false)
Determine offset and order.
setData($a_data)
set table data @access public
setEnableTitle($a_enabletitle)
Set Enable Title.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
resetOffset($a_in_determination=false)
Reset offset.
addMultiCommand($a_cmd, $a_text)
Add Command button.
setDefaultOrderField($a_defaultorderfield)
Set Default order field.
setSelectAllCheckbox($a_select_all_checkbox)
Set the name of the checkbox that should be toggled with a select all button.
getPrintMode()
Get print mode.
const FILTER_DURATION_RANGE
setExternalSegmentation($a_val)
Set external segmentation.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
addFilterItemByMetaType($id, $type=self::FILTER_TEXT, $a_optional=false, $caption=NULL)
Add filter by standard type.
const FILTER_NUMBER_RANGE
setDefaultOrderDirection($a_defaultorderdirection)
Set Default order direction.
setShowTemplates($a_value)
Toggle templates.
const FILTER_DATETIME_RANGE
getOrderDirection()
Get order direction.
setMaxCount($a_max_count)
set max.
Learning progress table: One object, rows: users, columns: properties Example: A course,...
fillHeaderExcel(ilExcel $a_excel, &$a_row)
Excel Version of Fill Header.
fillRowCSV($a_csv, $a_set)
CSV Version of Fill Row.
fillRowExcel(ilExcel $a_excel, &$a_row, $a_set)
Excel Version of Fill Row.
fillHeaderCSV($a_csv)
CSV Version of Fill Header.
fillRow($data)
Fill table row.
__construct($a_parent_obj, $a_parent_cmd, $a_obj_id, $a_ref_id, $a_print_view=false)
Constructor.
getSelectableColumns()
Get selectable columns.
getItems()
Get user items.
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.
static stripSlashes($a_str, $a_strip_html=true, $a_allow="")
strip slashes if magic qoutes is enabled
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
if(!is_array($argv)) $options