ILIAS  release_8 Revision v8.25-1-g13de6a5eca6
ilOrgUnitStaffGUI Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ Collaboration diagram for ilOrgUnitStaffGUI:

Public Member Functions

 __construct (ilObjOrgUnitGUI $parent_gui)
 
 executeCommand ()
 
 showStaff ()
 
 showOtherRoles ()
 
 showStaffRec ()
 
 addStaff ()
 
 addOtherRoles ()
 
 getStaffTableHTML ($recursive=false, $table_cmd="showStaff")
 
 getOtherRolesTableHTML ()
 
 fromSuperiorToEmployee ()
 
 fromEmployeeToSuperior ()
 
 confirmRemoveUser ($cmd)
 
 removeFromSuperiors ()
 
 removeFromEmployees ()
 
 removeFromRole ()
 
 setTabs ()
 

Protected Attributes

ilTabsGUI $tabs_gui
 
ilToolbarGUI $toolbar
 
ilCtrl $ctrl
 
ilGlobalTemplateInterface $tpl
 
object $parent_gui
 
object $parent_object
 
ilLanguage $lng
 
ilAccessHandler $ilAccess
 
ilRbacReview $rbacreview
 

Private Member Functions

 addStaffToolbar ()
 
 addOtherRolesToolbar ()
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Class ilOrgUnitStaffGUI

Author
Oskar Truffer ot@st.nosp@m.uder.nosp@m.-raim.nosp@m.ann..nosp@m.ch
Martin Studer ms@st.nosp@m.uder.nosp@m.-raim.nosp@m.ann..nosp@m.ch Date: 4/07/13 Time: 1:09 PM @ilCtrl_Calls ilOrgUnitStaffGUI: ilRepositorySearchGUI

Definition at line 28 of file class.ilOrgUnitStaffGUI.php.

Constructor & Destructor Documentation

◆ __construct()

ilOrgUnitStaffGUI::__construct ( ilObjOrgUnitGUI  $parent_gui)
Parameters
ilObjOrgUnitGUI$parent_gui

Definition at line 43 of file class.ilOrgUnitStaffGUI.php.

44 {
45 global $DIC;
46 $this->tpl = $DIC->ui()->mainTemplate();
47 $this->ctrl = $DIC->ctrl();
48 $this->parent_gui = $parent_gui;
49 $this->parent_object = $parent_gui->object;
50 $this->tabs_gui = $this->parent_gui->tabs_gui;
51 $this->toolbar = $DIC->toolbar();
52 $this->lng = $DIC->language();
53 $this->ilAccess = $DIC->access();
54 $this->toolbar = $DIC->toolbar();
55 $this->rbacreview = $DIC->rbac()->review();
56
57 $this->tabs_gui->setTabActive("orgu_staff");
58 $this->setTabs();
59 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
global $DIC
Definition: feed.php:28

References $DIC, $parent_gui, ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), setTabs(), and ILIAS\Repository\toolbar().

+ Here is the call graph for this function:

Member Function Documentation

◆ addOtherRoles()

ilOrgUnitStaffGUI::addOtherRoles ( )

Definition at line 219 of file class.ilOrgUnitStaffGUI.php.

220 {
221 if (!$this->ilAccess->checkAccess("write", "", $this->parent_object->getRefId())) {
222 $this->tpl->setOnScreenMessage('failure', $this->lng->txt("permission_denied"), true);
223 $this->ctrl->redirect($this->parent_gui, "");
224 }
225
226 $users = explode(',', $_POST['user_login']);
227 $user_ids = array();
228 foreach ($users as $user) {
229 $user_id = ilObjUser::_lookupId($user);
230 if ($user_id) {
231 $user_ids[] = $user_id;
232 }
233 }
234 $role_id = isset($_POST['user_type']) ? $_POST['user_type'] : 0;
235 foreach ($user_ids as $user_id) {
236 $this->parent_object->assignUserToLocalRole($role_id, $user_id);
237 }
238 $this->tpl->setOnScreenMessage('success', $this->lng->txt("users_successfuly_added"), true);
239 $this->ctrl->redirect($this, "showOtherRoles");
240 }
checkAccess(string $a_permission, string $a_cmd, int $a_ref_id, string $a_type="", ?int $a_obj_id=null, ?int $a_tree_id=null)
check access for an object (provide $a_type and $a_obj_id if available for better performance)
static _lookupId($a_user_str)

References ilObjUser\_lookupId(), ilAccess\checkAccess(), ILIAS\Repository\ctrl(), and ILIAS\Repository\lng().

+ Here is the call graph for this function:

◆ addOtherRolesToolbar()

ilOrgUnitStaffGUI::addOtherRolesToolbar ( )
private

Definition at line 167 of file class.ilOrgUnitStaffGUI.php.

167 : void
168 {
169 $arrLocalRoles = $this->rbacreview->getLocalRoles($this->parent_object->getRefId());
170 $types = array();
171 foreach ($arrLocalRoles as $role_id) {
172 $ilObjRole = new ilObjRole($role_id);
173 if (!preg_match("/il_orgu_/", $ilObjRole->getUntranslatedTitle())) {
174 $types[$role_id] = $ilObjRole->getPresentationTitle();
175 }
176 }
177 $this->ctrl->setParameterByClass('ilRepositorySearchGUI', 'addusertype', 'other');
179 'auto_complete_name' => $this->lng->txt('user'),
180 'user_type' => $types,
181 'submit_name' => $this->lng->txt('add'),
182 ));
183 }
Class ilObjRole.
static fillAutoCompleteToolbar(object $parent_object, ilToolbarGUI $toolbar=null, array $a_options=[], bool $a_sticky=false)
array( auto_complete_name = $lng->txt('user'), auto_complete_size = 15, user_type = array(ilCoursePar...

References ILIAS\Repository\ctrl(), ilRepositorySearchGUI\fillAutoCompleteToolbar(), ILIAS\Repository\lng(), and ILIAS\Repository\toolbar().

Referenced by showOtherRoles().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ addStaff()

ilOrgUnitStaffGUI::addStaff ( )

Definition at line 185 of file class.ilOrgUnitStaffGUI.php.

186 {
187 if (!$this->ilAccess->checkAccess("write", "", $this->parent_object->getRefId())) {
188 $this->tpl->setOnScreenMessage('failure', $this->lng->txt("permission_denied"), true);
189 $this->ctrl->redirect($this->parent_gui, "");
190 }
191
192 $users = explode(',', $_POST['user_login']);
193 $user_ids = array();
194 foreach ($users as $user) {
195 $user_id = ilObjUser::_lookupId($user);
196 if ($user_id) {
197 $user_ids[] = $user_id;
198 }
199 }
200
201 if (!count($user_ids)) {
202 $this->tpl->setOnScreenMessage('failure', $this->lng->txt("user_not_found"), true);
203 $this->ctrl->redirect($this, "showStaff");
204 }
205
206 $user_type = isset($_POST['user_type']) ? $_POST['user_type'] : 0;
207 if ($user_type == "employee") {
208 $this->parent_object->assignUsersToEmployeeRole($user_ids);
209 } elseif ($user_type == "superior") {
210 $this->parent_object->assignUsersToSuperiorRole($user_ids);
211 } else {
212 throw new Exception("The post request didn't specify wether the user_ids should be assigned to the employee or the superior role.");
213 }
214
215 $this->tpl->setOnScreenMessage('success', $this->lng->txt("users_successfuly_added"), true);
216 $this->ctrl->redirect($this, "showStaff");
217 }

References ilObjUser\_lookupId(), ilAccess\checkAccess(), ILIAS\Repository\ctrl(), and ILIAS\Repository\lng().

+ Here is the call graph for this function:

◆ addStaffToolbar()

ilOrgUnitStaffGUI::addStaffToolbar ( )
private

Definition at line 153 of file class.ilOrgUnitStaffGUI.php.

153 : void
154 {
155 $types = array(
156 "employee" => $this->lng->txt("employee"),
157 "superior" => $this->lng->txt("superior"),
158 );
159 $this->ctrl->setParameterByClass('ilRepositorySearchGUI', 'addusertype', 'staff');
161 'auto_complete_name' => $this->lng->txt('user'),
162 'user_type' => $types,
163 'submit_name' => $this->lng->txt('add'),
164 ));
165 }

References ILIAS\Repository\ctrl(), ilRepositorySearchGUI\fillAutoCompleteToolbar(), ILIAS\Repository\lng(), and ILIAS\Repository\toolbar().

Referenced by showStaff().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ confirmRemoveUser()

ilOrgUnitStaffGUI::confirmRemoveUser (   $cmd)

Definition at line 308 of file class.ilOrgUnitStaffGUI.php.

309 {
310 if (!$this->ilAccess->checkAccess("write", "", $this->parent_object->getRefId())) {
311 $this->tpl->setOnScreenMessage('failure', $this->lng->txt("permission_denied"), true);
312 $this->ctrl->redirect($this->parent_gui, "");
313 }
314 switch ($cmd) {
315 case "confirmRemoveFromRole":
316 $this->tabs_gui->activateSubTab("show_other_roles");
317 $nextcmd = "removeFromRole";
318 $paramname = "obj_id-role_id";
319 $param = $_GET["obj_id"] . '-' . $_GET["role_id"];
320 break;
321 case "confirmRemoveFromSuperiors":
322 $this->tabs_gui->activateSubTab("show_staff");
323 $nextcmd = "removeFromSuperiors";
324 $paramname = "obj_id";
325 $param = $_GET["obj_id"];
326 break;
327 case "confirmRemoveFromEmployees":
328 $this->tabs_gui->activateSubTab("show_staff");
329 $nextcmd = "removeFromEmployees";
330 $paramname = "obj_id";
331 $param = $_GET["obj_id"];
332 break;
333 }
334 $confirm = new ilConfirmationGUI();
335 $confirm->setFormAction($this->ctrl->getFormAction($this, $nextcmd));
336 $confirm->setHeaderText($this->lng->txt('orgu_staff_deassign'));
337 $confirm->setConfirm($this->lng->txt('confirm'), $nextcmd);
338 $confirm->setCancel($this->lng->txt('cancel'), 'showStaff');
339 $arrUser = ilObjUser::_lookupName($_GET["obj_id"]);
340 $confirm->addItem(
341 $paramname,
342 $param,
343 $arrUser['lastname'] . ', ' . $arrUser['firstname'] . ' [' . $arrUser['login']
344 . ']',
345 ilUtil::getImagePath('icon_usr.svg')
346 );
347 $this->tpl->setContent($confirm->getHTML());
348 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static _lookupName(int $a_user_id)
lookup user name
static getImagePath(string $img, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory)
$_GET['client_id']
Definition: saml1-acs.php:21
$param
Definition: xapitoken.php:46

References $_GET, $param, ilObjUser\_lookupName(), ilAccess\checkAccess(), ILIAS\Repository\ctrl(), ilUtil\getImagePath(), and ILIAS\Repository\lng().

Referenced by executeCommand().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ executeCommand()

ilOrgUnitStaffGUI::executeCommand ( )
Returns
bool
Exceptions
Exception
ilCtrlException
ilException

Definition at line 67 of file class.ilOrgUnitStaffGUI.php.

67 : bool
68 {
69 $next_class = $this->ctrl->getNextClass($this);
70 $cmd = $this->ctrl->getCmd();
71
72 switch ($next_class) {
73 case 'ilrepositorysearchgui':
74 $repo = new ilRepositorySearchGUI();
75 $this->ctrl->forwardCommand($repo);
76 break;
77 default:
78 switch ($cmd) {
79 case 'showStaff':
80 $this->tabs_gui->activateSubTab("show_staff");
81 $this->showStaff();
82 break;
83 case 'showOtherRoles':
84 $this->tabs_gui->activateSubTab("show_other_roles");
85 $this->showOtherRoles();
86 break;
87 case 'showStaffRec':
88 $this->tabs_gui->activateSubTab("show_staff_rec");
89 $this->showStaffRec();
90 break;
91 case 'confirmRemoveFromRole':
92 case 'confirmRemoveFromEmployees':
93 case 'confirmRemoveFromSuperiors':
94 $this->confirmRemoveUser($cmd);
95 break;
96 case 'addStaff':
97 case 'addOtherRoles':
98 case 'fromSuperiorToEmployee':
99 case 'fromEmployeeToSuperior':
100 case 'removeFromSuperiors':
101 case 'removeFromEmployees':
102 case 'removeFromRole':
103 $this->$cmd();
104 break;
105 default:
106 throw new ilException("Unknown command for command class ilOrgUnitStaffGUI: " . $cmd);
107 break;
108 }
109 break;
110 }
111
112 return true;
113 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

References confirmRemoveUser(), ILIAS\Repository\ctrl(), showOtherRoles(), showStaff(), and showStaffRec().

+ Here is the call graph for this function:

◆ fromEmployeeToSuperior()

ilOrgUnitStaffGUI::fromEmployeeToSuperior ( )

Definition at line 296 of file class.ilOrgUnitStaffGUI.php.

297 {
298 if (!$this->ilAccess->checkAccess("write", "", $this->parent_object->getRefId())) {
299 $this->tpl->setOnScreenMessage('failure', $this->lng->txt("permission_denied"), true);
300 $this->ctrl->redirect($this->parent_gui, "");
301 }
302 $this->parent_object->deassignUserFromEmployeeRole($_GET["obj_id"]);
303 $this->parent_object->assignUsersToSuperiorRole(array($_GET["obj_id"]));
304 $this->tpl->setOnScreenMessage('success', $this->lng->txt("user_changed_successful"), true);
305 $this->ctrl->redirect($this, "showStaff");
306 }

References $_GET, ilAccess\checkAccess(), ILIAS\Repository\ctrl(), and ILIAS\Repository\lng().

+ Here is the call graph for this function:

◆ fromSuperiorToEmployee()

ilOrgUnitStaffGUI::fromSuperiorToEmployee ( )

Definition at line 284 of file class.ilOrgUnitStaffGUI.php.

285 {
286 if (!$this->ilAccess->checkAccess("write", "", $this->parent_object->getRefId())) {
287 $this->tpl->setOnScreenMessage('failure', $this->lng->txt("permission_denied"), true);
288 $this->ctrl->redirect($this->parent_gui, "");
289 }
290 $this->parent_object->deassignUserFromSuperiorRole($_GET["obj_id"]);
291 $this->parent_object->assignUsersToEmployeeRole(array($_GET["obj_id"]));
292 $this->tpl->setOnScreenMessage('success', $this->lng->txt("user_changed_successful"), true);
293 $this->ctrl->redirect($this, "showStaff");
294 }

References $_GET, ilAccess\checkAccess(), ILIAS\Repository\ctrl(), and ILIAS\Repository\lng().

+ Here is the call graph for this function:

◆ getOtherRolesTableHTML()

ilOrgUnitStaffGUI::getOtherRolesTableHTML ( )

Definition at line 262 of file class.ilOrgUnitStaffGUI.php.

263 {
264 global $DIC;
265 $lng = $DIC['lng'];
266 $rbacreview = $DIC['rbacreview'];
267 $arrLocalRoles = $rbacreview->getLocalRoles($this->parent_object->getRefId());
268 $html = "";
269 foreach ($arrLocalRoles as $role_id) {
270 $ilObjRole = new ilObjRole($role_id);
271 if (!preg_match("/il_orgu_/", $ilObjRole->getUntranslatedTitle())) {
272 $other_roles_table = new ilOrgUnitOtherRolesTableGUI($this, 'other_role_' . $role_id, $role_id);
273 $other_roles_table->readData();
274 $html .= $other_roles_table->getHTML() . "<br/>";
275 }
276 }
277 if (!$html) {
278 $html = $lng->txt("no_roles");
279 }
280
281 return $html;
282 }
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getLocalRoles(int $a_ref_id)
Get local roles of object.

References $DIC, $lng, $rbacreview, ilRbacReview\getLocalRoles(), and ilLanguage\txt().

Referenced by showOtherRoles().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getStaffTableHTML()

ilOrgUnitStaffGUI::getStaffTableHTML (   $recursive = false,
  $table_cmd = "showStaff" 
)
Parameters
bool$recursive
string$table_cmd
Returns
string the tables html.

Definition at line 247 of file class.ilOrgUnitStaffGUI.php.

248 {
249 global $DIC;
250 $lng = $DIC['lng'];
251 $rbacreview = $DIC['rbacreview'];
252 $superior_table = new ilOrgUnitStaffTableGUI($this, $table_cmd, "superior", $recursive);
253 $superior_table->parseData();
254 $superior_table->setTitle($lng->txt("il_orgu_superior"));
255 $employee_table = new ilOrgUnitStaffTableGUI($this, $table_cmd, "employee", $recursive);
256 $employee_table->parseData();
257 $employee_table->setTitle($lng->txt("il_orgu_employee"));
258
259 return $superior_table->getHTML() . $employee_table->getHTML();
260 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

References $DIC, $lng, $rbacreview, and ilLanguage\txt().

Referenced by showStaff(), and showStaffRec().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ removeFromEmployees()

ilOrgUnitStaffGUI::removeFromEmployees ( )

Definition at line 365 of file class.ilOrgUnitStaffGUI.php.

366 {
367 if (!$this->ilAccess->checkAccess("write", "", $this->parent_object->getRefId())) {
368 $this->tpl->setOnScreenMessage('failure', $this->lng->txt("permission_denied"), true);
369 $this->ctrl->redirect($this->parent_gui, "");
370 }
371 $this->parent_object->deassignUserFromEmployeeRole($_POST["obj_id"]);
372 //if user is neither employee nor superior, remove orgunit from user->org_units
373 if (!$this->rbacreview->isAssigned($_POST["obj_id"], $this->parent_object->getSuperiorRole())) {
374 ilObjUser::_removeOrgUnit($_POST["obj_id"], $this->parent_object->getRefId());
375 }
376 $this->tpl->setOnScreenMessage('success', $this->lng->txt("deassign_user_successful"), true);
377 $this->ctrl->redirect($this, "showStaff");
378 }

References ilAccess\checkAccess(), ILIAS\Repository\ctrl(), and ILIAS\Repository\lng().

+ Here is the call graph for this function:

◆ removeFromRole()

ilOrgUnitStaffGUI::removeFromRole ( )

Definition at line 380 of file class.ilOrgUnitStaffGUI.php.

381 {
382 if (!$this->ilAccess->checkAccess("write", "", $this->parent_object->getRefId())) {
383 $this->tpl->setOnScreenMessage('failure', $this->lng->txt("permission_denied"), true);
384 $this->ctrl->redirect($this->parent_gui, "");
385 }
386 $arrObjIdRolId = explode("-", $_POST["obj_id-role_id"]);
387 $this->parent_object->deassignUserFromLocalRole($arrObjIdRolId[1], $arrObjIdRolId[0]);
388 $this->tpl->setOnScreenMessage('success', $this->lng->txt("deassign_user_successful"), true);
389 $this->ctrl->redirect($this, "showOtherRoles");
390 }

References ilAccess\checkAccess(), ILIAS\Repository\ctrl(), and ILIAS\Repository\lng().

+ Here is the call graph for this function:

◆ removeFromSuperiors()

ilOrgUnitStaffGUI::removeFromSuperiors ( )

Definition at line 350 of file class.ilOrgUnitStaffGUI.php.

351 {
352 if (!$this->ilAccess->checkAccess("write", "", $this->parent_object->getRefId())) {
353 $this->tpl->setOnScreenMessage('failure', $this->lng->txt("permission_denied"), true);
354 $this->ctrl->redirect($this->parent_gui, "");
355 }
356 $this->parent_object->deassignUserFromSuperiorRole($_POST["obj_id"]);
357 //if user is neither employee nor superior, remove orgunit from user->org_units
358 if (!$this->rbacreview->isAssigned($_POST["obj_id"], $this->parent_object->getEmployeeRole())) {
359 ilObjUser::_removeOrgUnit($_POST["obj_id"], $this->parent_object->getRefId());
360 }
361 $this->tpl->setOnScreenMessage('success', $this->lng->txt("deassign_user_successful"), true);
362 $this->ctrl->redirect($this, "showStaff");
363 }

References ilAccess\checkAccess(), ILIAS\Repository\ctrl(), and ILIAS\Repository\lng().

+ Here is the call graph for this function:

◆ setTabs()

ilOrgUnitStaffGUI::setTabs ( )

Definition at line 392 of file class.ilOrgUnitStaffGUI.php.

393 {
394 $this->tabs_gui->addSubTab(
395 "show_staff",
396 sprintf($this->lng->txt("local_staff"), $this->parent_object->getTitle()),
397 $this->ctrl->getLinkTarget($this, "showStaff")
398 );
399 if ($this->ilAccess->checkAccess("view_learning_progress_rec", "", $this->parent_object->getRefId())) {
400 $this->tabs_gui->addSubTab(
401 "show_staff_rec",
402 sprintf($this->lng->txt("rec_staff"), $this->parent_object->getTitle()),
403 $this->ctrl->getLinkTarget($this, "showStaffRec")
404 );
405 }
406 if ($this->ilAccess->checkAccess("write", "", $this->parent_object->getRefId())) {
407 $this->tabs_gui->addSubTab(
408 "show_other_roles",
409 sprintf($this->lng->txt("local_other_roles"), $this->parent_object->getTitle()),
410 $this->ctrl->getLinkTarget($this, "showOtherRoles")
411 );
412 }
413 }

References ilAccess\checkAccess(), and ILIAS\Repository\lng().

Referenced by __construct().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ showOtherRoles()

ilOrgUnitStaffGUI::showOtherRoles ( )

Definition at line 131 of file class.ilOrgUnitStaffGUI.php.

131 : void
132 {
133 if (!$this->ilAccess->checkAccess("write", "", $this->parent_object->getRefId())) {
134 $this->tpl->setOnScreenMessage('failure', $this->lng->txt("permission_denied"), true);
135 $this->ctrl->redirect($this->parent_gui, "");
136 }
137 if ($this->ilAccess->checkAccess("write", "", $this->parent_object->getRefId())) {
138 $this->addOtherRolesToolbar();
139 }
140 $this->tpl->setContent($this->getOtherRolesTableHTML());
141 }

References addOtherRolesToolbar(), ilAccess\checkAccess(), ILIAS\Repository\ctrl(), getOtherRolesTableHTML(), and ILIAS\Repository\lng().

Referenced by executeCommand().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ showStaff()

ilOrgUnitStaffGUI::showStaff ( )
Exceptions
ilCtrlException

Definition at line 118 of file class.ilOrgUnitStaffGUI.php.

118 : void
119 {
120 if (!ilObjOrgUnitAccess::_checkAccessStaff($this->parent_object->getRefId())) {
121 $this->tpl->setOnScreenMessage('failure', $this->lng->txt("permission_denied"), true);
122 $this->ctrl->redirect($this->parent_gui, "");
123 }
124 if ($this->ilAccess->checkAccess("write", "", $this->parent_object->getRefId())) {
125 $this->addStaffToolbar();
126 }
127 $this->ctrl->setParameter($this, "recursive", false);
128 $this->tpl->setContent($this->getStaffTableHTML(false, "showStaff"));
129 }
static _checkAccessStaff(int $ref_id)
getStaffTableHTML($recursive=false, $table_cmd="showStaff")

References ilObjOrgUnitAccess\_checkAccessStaff(), addStaffToolbar(), ilAccess\checkAccess(), ILIAS\Repository\ctrl(), getStaffTableHTML(), and ILIAS\Repository\lng().

Referenced by executeCommand().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ showStaffRec()

ilOrgUnitStaffGUI::showStaffRec ( )

Definition at line 143 of file class.ilOrgUnitStaffGUI.php.

143 : void
144 {
145 if (!ilObjOrgUnitAccess::_checkAccessStaffRec($this->parent_object->getRefId())) {
146 $this->tpl->setOnScreenMessage('failure', $this->lng->txt("permission_denied"), true);
147 $this->ctrl->redirect($this->parent_gui, "");
148 }
149 $this->ctrl->setParameter($this, "recursive", true);
150 $this->tpl->setContent($this->getStaffTableHTML(true, "showStaffRec"));
151 }
static _checkAccessStaffRec(int $ref_id)

References ilObjOrgUnitAccess\_checkAccessStaffRec(), ILIAS\Repository\ctrl(), getStaffTableHTML(), and ILIAS\Repository\lng().

Referenced by executeCommand().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Field Documentation

◆ $ctrl

ilCtrl ilOrgUnitStaffGUI::$ctrl
protected

Definition at line 32 of file class.ilOrgUnitStaffGUI.php.

◆ $ilAccess

ilAccessHandler ilOrgUnitStaffGUI::$ilAccess
protected

Definition at line 37 of file class.ilOrgUnitStaffGUI.php.

◆ $lng

ilLanguage ilOrgUnitStaffGUI::$lng
protected

Definition at line 36 of file class.ilOrgUnitStaffGUI.php.

Referenced by getOtherRolesTableHTML(), and getStaffTableHTML().

◆ $parent_gui

object ilOrgUnitStaffGUI::$parent_gui
protected

Definition at line 34 of file class.ilOrgUnitStaffGUI.php.

Referenced by __construct().

◆ $parent_object

object ilOrgUnitStaffGUI::$parent_object
protected

Definition at line 35 of file class.ilOrgUnitStaffGUI.php.

◆ $rbacreview

ilRbacReview ilOrgUnitStaffGUI::$rbacreview
protected

Definition at line 38 of file class.ilOrgUnitStaffGUI.php.

Referenced by getOtherRolesTableHTML(), and getStaffTableHTML().

◆ $tabs_gui

ilTabsGUI ilOrgUnitStaffGUI::$tabs_gui
protected

Definition at line 30 of file class.ilOrgUnitStaffGUI.php.

◆ $toolbar

ilToolbarGUI ilOrgUnitStaffGUI::$toolbar
protected

Definition at line 31 of file class.ilOrgUnitStaffGUI.php.

◆ $tpl

ilGlobalTemplateInterface ilOrgUnitStaffGUI::$tpl
protected

Definition at line 33 of file class.ilOrgUnitStaffGUI.php.


The documentation for this class was generated from the following file: