ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
class.ilGroupUserActionsGUI.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
5 /* Copyright (c) 1998-2017 ILIAS open source, Extended GPL, see docs/LICENSE */
6 
16 {
17  protected ilCtrl $ctrl;
18 
19  public function __construct()
20  {
21  global $DIC;
22  $this->ctrl = $DIC->ctrl();
23  }
24 
25  public function executeCommand(): void
26  {
27  $ctrl = $this->ctrl;
28 
29  $next_class = $ctrl->getNextClass($this);
30  $cmd = $ctrl->getCmd("show");
31 
32  switch ($next_class) {
33  case "ilgroupaddtogroupactiongui":
34  $gui = new ilGroupAddToGroupActionGUI();
35  $ctrl->forwardCommand($gui);
36  break;
37  }
38  }
39 }
getCmd(string $fallback_command=null)
Add user to group from awareness tool.
forwardCommand(object $a_gui_object)
global $DIC
Definition: feed.php:28
getNextClass($a_gui_class=null)