15 include_once
'./Services/Table/classes/class.ilTable2GUI.php';
29 public function __construct($a_obj_id, $a_parent_obj, $a_parent_cmd)
31 $this->obj_id = $a_obj_id;
33 parent::__construct($a_parent_obj, $a_parent_cmd);
52 include_once
'./Modules/ScormAicc/classes/class.ilSCORMOfflineMode.php';
54 foreach (
$users as $user) {
56 $tmp[
'user'] = $user[
'user_id'];
57 $tmp[
'firstname'] = $user[
'firstname'];
58 $tmp[
'lastname'] = $user[
'lastname'];
73 $this->tpl->setVariable(
'CHECKBOX_ID', $a_set[
'user']);
74 $this->tpl->setVariable(
'VAL_USERNAME', $a_set[
'lastname'] .
', ' . $a_set[
'firstname']);
76 $ilCtrl->setParameter($this->
getParentObject(),
'user_id', $a_set[
'user']);
86 $this->
setFormAction($ilCtrl->getFormAction($this->getParentObject()));
87 $this->
setRowTemplate(
'tpl.scorm_offline_mode_users.html',
'Modules/ScormAicc');
88 $this->
setTitle($this->lng->txt(
'offline_mode_users'));
92 $this->
addColumn($this->lng->txt(
'name'),
'name');
94 $this->
enable(
'select_all');
97 $this->
addMultiCommand(
'stopUserOfflineMode', $this->lng->txt(
'stop_user_offline_mode'));
setDescription($a_val)
Set description.
parse()
Parse table content.
static usersInOfflineMode($obj_id)
fillRow($a_set)
Fill row template.
getParentObject()
Get parent object.
__construct($a_obj_id, $a_parent_obj, $a_parent_cmd)
Constructor.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
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.
GUI class ilSCORMOfflineModeUsersTableGUI.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
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.
setSelectAllCheckbox($a_select_all_checkbox)
Set the name of the checkbox that should be toggled with a select all button.