3 declare(strict_types=1);
48 parent::__construct($parent_gui,
'editMembers');
58 $this->
setFormAction($this->ctrl->getFormAction($parent_gui));
59 $this->
setRowTemplate(
"tpl.edit_participants_row.html",
"Modules/LearningSequence");
61 $this->
addColumn($this->lng->txt(
'name'),
'name',
'20%');
62 $this->
addColumn($this->lng->txt(
'login'),
'login',
'25%');
63 $this->
addColumn($this->lng->txt(
'lso_notification'),
'notification');
64 $this->
addColumn($this->lng->txt(
'objs_role'),
'roles');
66 if ($this->privacy_settings->enabledLearningSequenceAccessTimes()) {
67 $this->
addColumn($this->lng->txt(
'last_access'),
'access_time');
81 $this->tpl->setVariable(
'VAL_ID', $set[
'usr_id']);
82 $this->tpl->setVariable(
'VAL_NAME', $set[
'lastname'] .
', ' . $set[
'firstname']);
83 $this->tpl->setVariable(
'VAL_LOGIN', $set[
'login']);
84 $this->tpl->setVariable(
'VAL_NOTIFICATION_ID', $set[
'usr_id']);
85 $this->tpl->setVariable(
'VAL_NOTIFICATION_CHECKED', $set[
'notification'] ?
'checked="checked"' :
'');
86 $this->tpl->setVariable(
'NUM_ROLES', count($this->ls_participants->getRoles()));
88 if ($this->privacy_settings->enabledLearningSequenceAccessTimes()) {
89 $this->tpl->setVariable(
'VAL_ACCESS', $set[
'access_time']);
92 $assigned = $this->ls_participants->getAssignedRoles($set[
'usr_id']);
93 foreach ($this->ls_object->getLocalLearningSequenceRoles(
true) as
$name => $role_id) {
94 $this->tpl->setCurrentBlock(
'roles');
95 $this->tpl->setVariable(
'ROLE_ID', $role_id);
96 $this->tpl->setVariable(
'ROLE_NAME', $name);
98 if (in_array($role_id, $assigned)) {
99 $this->tpl->setVariable(
'ROLE_CHECKED',
'selected="selected"');
102 $this->tpl->parseCurrentBlock();
addCommandButton($a_cmd, $a_text, $a_onclick='', $a_id="", $a_class=null)
Add Command button.
This class provides processing control methods.
Class ilObjLearningSequence.
Singleton class that stores all privacy settings.
__construct(ilLearningSequenceMembershipGUI $parent_gui, ilObjLearningSequence $ls_object, ilLearningSequenceParticipants $ls_participants, ilPrivacySettings $privacy_settings, ilLanguage $lng, ilCtrl $ctrl)
enable($a_module_name)
enables particular modules of table
setRowTemplate($a_template, $a_template_dir="")
Set row template.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
disable($a_module_name)
diesables particular modules of table
setFormName($a_formname="")
Set Form name.
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.
GUI class for learning sequence membership features.