ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilCourseParticipantsGroupsGUI.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=0);
20
24use ILIAS\Data\Factory as ilDataFactory;
25
32{
33 private int $ref_id = 0;
34
36 protected ilLanguage $lng;
42 protected Factory $refinery;
44 protected ilDataFactory $data_factory;
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}
Provides fluid interface to RBAC services.
Definition: UIServices.php:25
Builds data types.
Definition: Factory.php:36
error(string $a_errmsg)
Class ilCourseParticipantsGroupsGUI.
Error Handling & global info handling.
language handling
class ilObjectDataCache
Tree class data representation in hierachical trees using the Nested Set Model with Gaps by Joe Celco...
Filter service.
Interface GlobalHttpState.
Interface ilAccessHandler This interface combines all available interfaces which can be called via gl...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static http()
Fetches the global http state from ILIAS.
global $DIC
Definition: shib_login.php:26