ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
class.ilCourseParticipantsGroupsGUI.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=0);
20 
25 
32 {
33  private int $ref_id = 0;
34 
36  protected ilLanguage $lng;
42  protected Factory $refinery;
45  protected ilTree $tree;
47 
48  public function __construct($a_ref_id)
49  {
50  global $DIC;
51 
52  $this->access = $DIC->access();
53  $this->ctrl = $DIC->ctrl();
54  $this->lng = $DIC->language();
55  $this->error = $DIC['ilErr'];
56  $this->tpl = $DIC->ui()->mainTemplate();
57  $this->objectDataCache = $DIC['ilObjDataCache'];
58  $this->http = $DIC->http();
59  $this->refinery = $DIC->refinery();
60  $this->tree = $DIC->repositoryTree();
61  $this->ui_services = $DIC->ui();
62  $this->ui_service = $DIC->uiService();
63  $this->data_factory = new ilDataFactory();
64 
65  $this->ref_id = $a_ref_id;
66  }
67 
68  public function executeCommand(): void
69  {
70  if (!$this->access->checkRbacOrPositionPermissionAccess('manage_members', 'manage_members', $this->ref_id)) {
71  $this->error->raiseError($this->lng->txt('permission_denied'), $this->error->WARNING);
72  }
73  $cmd = $this->ctrl->getCmd();
74  if (!$cmd) {
75  $cmd = "show";
76  }
77  $this->$cmd();
78  }
79 
80  public function show(): void
81  {
83  $this,
84  $this->tree,
85  $this->access,
86  $this->ui_services,
87  $this->ref_id
88  );
89  $data_retrieval->init();
91  $data_retrieval,
92  $this->ui_services,
93  $this->ui_service,
94  $this->http,
95  $this->refinery,
96  $this->lng,
97  $this->ctrl,
98  $this->data_factory,
99  $this->tpl,
100  $this->access,
101  $this->objectDataCache
102  );
103  $tbl_gui->handleCommands();
104  $this->tpl->setContent($tbl_gui->getHTML());
105  }
106 }
Class ilCourseParticipantsGroupsGUI.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Provides fluid interface to RBAC services.
Definition: UIServices.php:24
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...
global $DIC
Definition: shib_login.php:26