4 include_once
'./Services/Table/classes/class.ilTable2GUI.php';
19 public function __construct($a_obj_id, $a_parent_obj, $a_parent_cmd)
21 $this->obj_id = $a_obj_id;
23 $this->
setId(
'sco_tr_usrs_' . $this->obj_id);
24 parent::__construct($a_parent_obj, $a_parent_cmd);
47 $versions = $this->
getParentObject()->object->getModuleVersionForUsers();
49 include_once(
'./Services/PrivacySecurity/classes/class.ilPrivacySettings.php');
51 $allowExportPrivacy = $privacy->enabledExportSCORM();
54 foreach (
$users as $user) {
56 $tmp[
'user'] = $user[
'user_id'];
57 if ($allowExportPrivacy ==
true) {
58 $tmp[
'name'] = $user[
'lastname'] .
', ' . $user[
'firstname'];
60 $tmp[
'name'] = $user[
'user_id'];
64 $tmp[
'attempts'] = (int) $attempts[$user[
'user_id']];
65 $tmp[
'version'] = (int) $versions[$user[
'user_id']];
75 $this->filter[
"lastname"] = $item->getValue();
86 $this->tpl->setVariable(
'CHECKBOX_ID', $a_set[
'user']);
87 $this->tpl->setVariable(
'VAL_USERNAME', $a_set[
'name']);
93 $this->tpl->setVariable(
'VAL_ATTEMPT', (
int) $a_set[
'attempts']);
94 $this->tpl->setVariable(
'VAL_VERSION', (
string) $a_set[
'version']);
109 $this->
setFormAction($ilCtrl->getFormAction($this->getParentObject()));
110 $this->
setRowTemplate(
'tpl.scorm_track_items.html',
'Modules/ScormAicc');
111 $this->
setTitle($this->lng->txt(
'cont_tracking_items'));
114 $this->
addColumn($this->lng->txt(
'user'),
'name',
'35%');
115 $this->
addColumn($this->lng->txt(
'last_access'),
'last_access',
'25%');
116 $this->
addColumn($this->lng->txt(
'attempts'),
'attempts',
'20%');
117 $this->
addColumn($this->lng->txt(
'version'),
'version',
'20%');
119 $this->
enable(
'select_all');
122 $this->
addMultiCommand(
'deleteTrackingForUser', $this->lng->txt(
'delete'));
123 $this->
addMultiCommand(
'decreaseAttempts', $this->lng->txt(
'decrease_attempts'));
124 $this->
addMultiCommand(
'exportSelectionUsers', $this->lng->txt(
'export'));
fillRow($a_set)
Fill row template.
static formatDate(ilDateTime $date, $a_skip_day=false, $a_include_wd=false)
Format a date public.
addFilterItemByMetaType($id, $type=self::FILTER_TEXT, $a_optional=false, $caption=null)
Add filter by standard type.
getParentObject()
Get parent object.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
setResetCommand($a_val, $a_caption=null)
Set reset filter command.
setDisableFilterHiding($a_val=true)
Set disable filter hiding.
__construct($a_obj_id, $a_parent_obj, $a_parent_cmd)
Constructor.
addMultiCommand($a_cmd, $a_text)
Add Command button.
enable($a_module_name)
enables particular modules of table
setRowTemplate($a_template, $a_template_dir="")
Set row template.
Create styles array
The data for the language used.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
parse()
Parse table content.
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.
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.
setFilterCommand($a_val, $a_caption=null)
Set filter command.