Class ilCourseParticipantsGroupsGUI.
More...
◆ __construct()
ilCourseParticipantsGroupsGUI::__construct |
( |
|
$a_ref_id | ) |
|
◆ add()
ilCourseParticipantsGroupsGUI::add |
( |
| ) |
|
|
protected |
Definition at line 184 of file class.ilCourseParticipantsGroupsGUI.php.
References $message, ilGroupParticipants\_getInstanceByObjId(), ILIAS\Repository\access(), getMultiCommandGroupID(), ILIAS\FileDelivery\http(), ilParticipants\IL_GRP_MEMBER, ILIAS\Repository\lng(), ILIAS\Repository\refinery(), show(), and ilGroupMembershipMailNotification\TYPE_ADMISSION_MEMBER.
188 if ($this->
http->wrapper()->post()->has(
'usrs')) {
189 $usr_ids = $this->
http->wrapper()->post()->retrieve(
195 if (count($usr_ids) > 0) {
196 if (!$this->
access->checkRbacOrPositionPermissionAccess(
'manage_members',
'manage_members', $grp_id)) {
197 $this->tpl->setOnScreenMessage(
'failure', $this->
lng->txt(
"permission_denied"),
true);
204 foreach ($usr_ids as $new_member) {
210 $members_obj->sendNotification(
216 if ($rejected_count === 0) {
217 $message = $this->
lng->txt(
'grp_msg_member_assigned');
219 $accepted_count = count($usr_ids) - $rejected_count;
221 $this->
lng->txt(
'grp_not_all_users_assigned_msg'),
226 $this->tpl->setOnScreenMessage(
'success',
$message);
static http()
Fetches the global http state from ILIAS.
static _getInstanceByObjId(int $a_obj_id)
Get singleton instance.
const TYPE_ADMISSION_MEMBER
◆ applyFilter()
ilCourseParticipantsGroupsGUI::applyFilter |
( |
| ) |
|
Definition at line 76 of file class.ilCourseParticipantsGroupsGUI.php.
References show().
79 $tbl_gui->resetOffset();
80 $tbl_gui->writeFilterToSession();
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
◆ confirmRemove()
ilCourseParticipantsGroupsGUI::confirmRemove |
( |
| ) |
|
Definition at line 92 of file class.ilCourseParticipantsGroupsGUI.php.
References ILIAS\Repository\ctrl(), ilUtil\getImagePath(), ilUserUtil\getNamePresentation(), ILIAS\FileDelivery\http(), ILIAS\Repository\lng(), and ILIAS\Repository\refinery().
95 if ($this->
http->wrapper()->query()->has(
'grp_id')) {
96 $grp_id = $this->
http->wrapper()->query()->retrieve(
102 $confirm->setFormAction($this->
ctrl->getFormAction($this,
'remove'));
103 $confirm->addHiddenItem(
"grp_id", $grp_id);
104 $confirm->setHeaderText($this->
lng->txt(
'grp_dismiss_member'));
105 $confirm->setConfirm($this->
lng->txt(
'confirm'),
'remove');
106 $confirm->setCancel($this->
lng->txt(
'cancel'),
'show');
109 if ($this->
http->wrapper()->query()->has(
'usr_id')) {
110 $usr_id = $this->
http->wrapper()->query()->retrieve(
122 $this->tpl->setContent($confirm->getHTML());
static getNamePresentation( $a_user_id, bool $a_user_image=false, bool $a_profile_link=false, string $a_profile_back_link="", bool $a_force_first_lastname=false, bool $a_omit_login=false, bool $a_sortable=true, bool $a_return_data_array=false, $a_ctrl_path="ilpublicuserprofilegui")
Default behaviour is:
static getImagePath(string $img, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory)
static http()
Fetches the global http state from ILIAS.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
◆ executeCommand()
ilCourseParticipantsGroupsGUI::executeCommand |
( |
| ) |
|
◆ getMultiCommandGroupID()
ilCourseParticipantsGroupsGUI::getMultiCommandGroupID |
( |
| ) |
|
|
protected |
◆ remove()
ilCourseParticipantsGroupsGUI::remove |
( |
| ) |
|
|
protected |
Definition at line 125 of file class.ilCourseParticipantsGroupsGUI.php.
References ilGroupParticipants\_getInstanceByObjId(), ILIAS\Repository\access(), ILIAS\Repository\ctrl(), ILIAS\FileDelivery\http(), ILIAS\Repository\lng(), ILIAS\Repository\refinery(), show(), and ilGroupMembershipMailNotification\TYPE_DISMISS_MEMBER.
128 if ($this->
http->wrapper()->post()->has(
'grp_id')) {
129 $grp_id = $this->
http->wrapper()->post()->retrieve(
135 if ($this->
http->wrapper()->post()->has(
'usr_id')) {
136 $usr_id = $this->
http->wrapper()->post()->retrieve(
141 if (!$this->
access->checkRbacOrPositionPermissionAccess(
'manage_members',
'manage_members', $grp_id)) {
142 $this->tpl->setOnScreenMessage(
'failure', $this->
lng->txt(
"permission_denied"),
true);
148 $members_obj->delete($usr_id);
151 $members_obj->sendNotification(
156 $this->tpl->setOnScreenMessage(
'success', $this->
lng->txt(
"grp_msg_membership_annulled"),
true);
157 $this->
ctrl->redirect($this,
"show");
const TYPE_DISMISS_MEMBER
static http()
Fetches the global http state from ILIAS.
static _getInstanceByObjId(int $a_obj_id)
Get singleton instance.
◆ resetFilter()
ilCourseParticipantsGroupsGUI::resetFilter |
( |
| ) |
|
Definition at line 84 of file class.ilCourseParticipantsGroupsGUI.php.
References show().
87 $tbl_gui->resetOffset();
88 $tbl_gui->resetFilter();
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
◆ show()
ilCourseParticipantsGroupsGUI::show |
( |
| ) |
|
◆ $access
◆ $ctrl
◆ $error
◆ $http
◆ $lng
◆ $objectDataCache
◆ $ref_id
int ilCourseParticipantsGroupsGUI::$ref_id = 0 |
|
private |
◆ $refinery
Factory ilCourseParticipantsGroupsGUI::$refinery |
|
protected |
◆ $tpl
The documentation for this class was generated from the following file: