19 declare(strict_types=0);
    46         $this->
access = $DIC->access();
    47         $this->
ctrl = $DIC->ctrl();
    48         $this->
lng = $DIC->language();
    49         $this->error = $DIC[
'ilErr'];
    50         $this->tpl = $DIC->ui()->mainTemplate();
    52         $this->
http = $DIC->http();
    55         $this->ref_id = $a_ref_id;
    60         if (!$this->
access->checkRbacOrPositionPermissionAccess(
'manage_members', 
'manage_members', $this->ref_id)) {
    61             $this->error->raiseError($this->
lng->txt(
'permission_denied'), $this->error->WARNING);
    63         $cmd = $this->
ctrl->getCmd();
    70     public function show(): void
    73         $this->tpl->setContent($tbl_gui->getHTML());
    79         $tbl_gui->resetOffset();
    80         $tbl_gui->writeFilterToSession();
    87         $tbl_gui->resetOffset();
    88         $tbl_gui->resetFilter();
    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());
   125     protected function remove(): 
void   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");
   165             $this->
http->wrapper()->post()->has(
'cmd') &&
   166             $this->
http->wrapper()->post()->has(
'grp_id')
   168             $grp_id = $this->
http->wrapper()->post()->retrieve(
   173             $this->
http->wrapper()->post()->has(
'table_top_cmd') &&
   174             $this->
http->wrapper()->post()->has(
'grp_id_2')
   176             $grp_id = $this->
http->wrapper()->post()->retrieve(
   184     protected function add(): void
   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);
 
Interface GlobalHttpState. 
 
Class ilCourseParticipantsGroupsGUI. 
 
const TYPE_DISMISS_MEMBER
 
static getImagePath(string $img, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory) 
 
ilGlobalTemplateInterface $tpl
 
static http()
Fetches the global http state from ILIAS. 
 
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: 
 
ilObjectDataCache $objectDataCache
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
Error Handling & global info handling. 
 
static _getInstanceByObjId(int $a_obj_id)
Get singleton instance. 
 
const TYPE_ADMISSION_MEMBER