ILIAS  release_8 Revision v8.24
ilLocalUserGUI 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 ilLocalUserGUI:

Public Member Functions

 __construct (ilObjectGUI $parentGui)
 
 executeCommand ()
 
 getObject ()
 
 index (bool $show_delete=false)
 
 performDeleteUsers ()
 
 deleteUsers ()
 
 assignRoles ()
 
 assignSave ()
 
 checkGlobalRoles ($new_assigned)
 
 getAssignableRoles ()
 
 showRolesTable ($a_result_set, $a_from="")
 

Protected Member Functions

 resetFilter ()
 
 applyFilter ()
 
 addUserAutoCompleteObject ()
 
 initTableGUI ()
 
 setTableGUIBasicData ($tbl, &$result_set, string $a_from="")
 
 checkPermission (string $permission)
 

Private Attributes

ilObjectGUI $parentGui
 
ilTabsGUI $tabsGui
 
ilPropertyFormGUI $form
 
ilToolbarGUI $toolbar
 
ilCtrl $ctrl
 
ilGlobalTemplateInterface $tpl
 
 $object
 
ilLanguage $lng
 
ilAccessHandler $access
 
ilRbacSystem $rbacSystem
 
ilRbacReview $rbacReview
 
ilRbacAdmin $rbacAdmin
 
ilObjUser $user
 
ILIAS DI LoggingServices $logger
 

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 ilLocalUserGUI

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

Definition at line 26 of file class.ilLocalUserGUI.php.

Constructor & Destructor Documentation

◆ __construct()

ilLocalUserGUI::__construct ( ilObjectGUI  $parentGui)

Definition at line 44 of file class.ilLocalUserGUI.php.

45 {
46 global $DIC;
47
48 $this->parentGui = $parentGui;
49 $this->object = $parentGui->getObject();
50 $this->tpl = $DIC->ui()->mainTemplate();
51 $this->ctrl = $DIC->ctrl();
52 $this->toolbar = $DIC->toolbar();
53 $this->lng = $DIC->language();
54 $this->rbacSystem = $DIC->rbac()->system();
55 $this->rbacReview = $DIC->rbac()->review();
56 $this->rbacAdmin = $DIC->rbac()->admin();
57 $this->user = $DIC->user();
58 $this->access = $DIC->access();
59 $this->tabsGui = $DIC->tabs();
60 $this->logger = $DIC->logger();
61
62 $this->lng->loadLanguageModule('user');
63 if (!$this->rbacSystem->checkAccess("cat_administrate_users", $this->parentGui->getObject()->getRefId())) {
64 $this->tpl->setOnScreenMessage('failure', $this->lng->txt("msg_no_perm_admin_users"), true);
65 }
66 }
global $DIC
Definition: feed.php:28

References $DIC, $parentGui, ILIAS\Repository\access(), ILIAS\Repository\ctrl(), ilObjectGUI\getObject(), ILIAS\Repository\lng(), ILIAS\Repository\logger(), ILIAS\Repository\toolbar(), and ILIAS\Repository\user().

+ Here is the call graph for this function:

Member Function Documentation

◆ addUserAutoCompleteObject()

ilLocalUserGUI::addUserAutoCompleteObject ( )
protected

Definition at line 145 of file class.ilLocalUserGUI.php.

145 : void
146 {
147 $auto = new ilUserAutoComplete();
148 $auto->setSearchFields(array('login', 'firstname', 'lastname', 'email'));
149 $auto->enableFieldSearchableCheck(true);
150 $auto->setMoreLinkAvailable(true);
151
152 if (($_REQUEST['fetchall'])) {
153 $auto->setLimit(ilUserAutoComplete::MAX_ENTRIES);
154 }
155
156 echo $auto->getList($_REQUEST['term']);
157 exit();
158 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
exit
Definition: login.php:28

References exit, and ilUserAutoComplete\MAX_ENTRIES.

◆ applyFilter()

ilLocalUserGUI::applyFilter ( )
protected

Definition at line 101 of file class.ilLocalUserGUI.php.

101 : void
102 {
103 $table = new ilUserTableGUI($this, "index", ilUserTableGUI::MODE_LOCAL_USER);
104 $table->resetOffset();
105 $table->writeFilterToSession();
106 $this->index();
107 }
index(bool $show_delete=false)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

References index(), and ilUserTableGUI\MODE_LOCAL_USER.

+ Here is the call graph for this function:

◆ assignRoles()

ilLocalUserGUI::assignRoles ( )
Exceptions
ilCtrlException
ilObjectNotFoundException
ilDatabaseException

Definition at line 209 of file class.ilLocalUserGUI.php.

209 : void
210 {
211 if (!$this->access->checkAccess("cat_administrate_users", "", $_GET["ref_id"])) {
212 $this->tpl->setOnScreenMessage('failure', $this->lng->txt("permission_denied"), true);
213 $this->ctrl->redirect($this, "");
214 }
215 $offset = isset($_GET["offset"]) ? $_GET["offset"] : 0;
216 // init sort_by (unfortunatly sort_by is preset with 'title'
217 if (!isset($_GET["sort_by"]) || $_GET["sort_by"] == "title" || empty($_GET["sort_by"])) {
218 $order = "login";
219 } else {
220 $order = $_GET["sort_by"];
221 }
222
223 $direction = isset($_GET["sort_order"]) ? $_GET["sort_order"] : 'asc';
224 if (!isset($_GET['obj_id'])) {
225 $this->tpl->setOnScreenMessage('failure', 'no_user_selected');
226 $this->index();
227 return;
228 }
229 $roles = $this->getAssignableRoles();
230 $this->tpl->addBlockfile(
231 'ADM_CONTENT',
232 'adm_content',
233 'tpl.cat_role_assignment.html',
234 "Modules/Category"
235 );
236 $ass_roles = $this->rbacReview->assignedRoles($_GET['obj_id']);
237 $counter = 0;
238 foreach ($roles as $role) {
239 $role_obj = ilObjectFactory::getInstanceByObjId($role['obj_id']);
240 $disabled = false;
241 $f_result[$counter][] = ilLegacyFormElementsUtil::formCheckbox(
242 in_array($role['obj_id'], $ass_roles) ? 1 : 0,
243 'role_ids[]',
244 $role['obj_id'],
245 $disabled
246 );
247 $f_result[$counter][] = $role_obj->getTitle();
248 $f_result[$counter][] = $role_obj->getDescription() ? $role_obj->getDescription() : '';
249 $f_result[$counter][] = (isset($role['role_type']) && $role['role_type'] == 'global')
250 ?
251 $this->lng->txt('global')
252 :
253 $this->lng->txt('local');
254 unset($role_obj);
255 ++$counter;
256 }
257 $this->showRolesTable($f_result, "assignRolesObject");
258 }
static formCheckbox(bool $checked, string $varname, string $value, bool $disabled=false)
showRolesTable($a_result_set, $a_from="")
static getInstanceByObjId(?int $obj_id, bool $stop_on_error=true)
get an instance of an Ilias object by object id
$_GET['client_id']
Definition: saml1-acs.php:21

References $_GET, ILIAS\Repository\access(), ILIAS\Repository\ctrl(), ilLegacyFormElementsUtil\formCheckbox(), getAssignableRoles(), ilObjectFactory\getInstanceByObjId(), index(), ILIAS\Repository\lng(), and showRolesTable().

Referenced by assignSave().

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

◆ assignSave()

ilLocalUserGUI::assignSave ( )

Definition at line 260 of file class.ilLocalUserGUI.php.

260 : bool
261 {
262 if (!$this->access->checkAccess("cat_administrate_users", "", $_GET["ref_id"])) {
263 $this->tpl->setOnScreenMessage('failure', $this->lng->txt("permission_denied"), true);
264 $this->ctrl->redirect($this, "");
265 }
266 // check hack
267 if (!isset($_GET['obj_id']) or !in_array($_REQUEST['obj_id'], ilLocalUser::_getAllUserIds())) {
268 $this->tpl->setOnScreenMessage('failure', 'no_user_selected');
269 $this->index();
270
271 return true;
272 }
273 $roles = $this->getAssignableRoles();
274 // check minimum one global role
275 if (!$this->checkGlobalRoles($_POST['role_ids'])) {
276 $this->tpl->setOnScreenMessage('failure', $this->lng->txt('no_global_role_left'));
277 $this->assignRolesObject();
278
279 return false;
280 }
281 $new_role_ids = $_POST['role_ids'] ? $_POST['role_ids'] : array();
282 $assigned_roles = $this->rbacReview->assignedRoles((int) $_REQUEST['obj_id']);
283 foreach ($roles as $role) {
284 if (in_array($role['obj_id'], $new_role_ids) and !in_array($role['obj_id'], $assigned_roles)) {
285 $this->rbacAdmin->assignUser($role['obj_id'], (int) $_REQUEST['obj_id']);
286 }
287 if (in_array($role['obj_id'], $assigned_roles) and !in_array($role['obj_id'], $new_role_ids)) {
288 $this->rbacAdmin->deassignUser($role['obj_id'], (int) $_REQUEST['obj_id']);
289 }
290 }
291 $this->tpl->setOnScreenMessage('success', $this->lng->txt('role_assignment_updated'));
292 $this->assignRoles();
293
294 return true;
295 }
checkGlobalRoles($new_assigned)
static _getAllUserIds(int $a_filter=0)

References $_GET, ilLocalUser\_getAllUserIds(), ILIAS\Repository\access(), assignRoles(), checkGlobalRoles(), ILIAS\Repository\ctrl(), getAssignableRoles(), index(), and ILIAS\Repository\lng().

+ Here is the call graph for this function:

◆ checkGlobalRoles()

ilLocalUserGUI::checkGlobalRoles (   $new_assigned)

Definition at line 297 of file class.ilLocalUserGUI.php.

297 : bool
298 {
299 if (!$this->access->checkAccess("cat_administrate_users", "", $_GET["ref_id"])) {
300 $this->tpl->setOnScreenMessage('failure', $this->lng->txt("permission_denied"), true);
301 $this->ctrl->redirect($this, "");
302 }
303 // return true if it's not a local user
304 $tmp_obj = ilObjectFactory::getInstanceByObjId($_REQUEST['obj_id']);
305 if ($tmp_obj->getTimeLimitOwner() != $this->object->getRefId() and
306 !in_array(SYSTEM_ROLE_ID, $this->rbacReview->assignedRoles($this->user->getId()))
307 ) {
308 return true;
309 }
310 // new assignment by form
311 $new_assigned = $new_assigned ? $new_assigned : array();
312 $assigned = $this->rbacReview->assignedRoles((int) $_GET['obj_id']);
313 // all assignable globals
314 if (!in_array(SYSTEM_ROLE_ID, $this->rbacReview->assignedRoles($this->user->getId()))) {
315 $ga = $this->rbacReview->getGlobalAssignableRoles();
316 } else {
317 $ga = $this->rbacReview->getGlobalRolesArray();
318 }
319 $global_assignable = array();
320 foreach ($ga as $role) {
321 $global_assignable[] = $role['obj_id'];
322 }
323 $new_visible_assigned_roles = array_intersect($new_assigned, $global_assignable);
324 $all_assigned_roles = array_intersect($assigned, $this->rbacReview->getGlobalRoles());
325 $main_assigned_roles = array_diff($all_assigned_roles, $global_assignable);
326 if (!count($new_visible_assigned_roles) and !count($main_assigned_roles)) {
327 return false;
328 }
329
330 return true;
331 }
const SYSTEM_ROLE_ID
Definition: constants.php:29

References $_GET, ILIAS\Repository\access(), ILIAS\Repository\ctrl(), ilObjectFactory\getInstanceByObjId(), ILIAS\Repository\lng(), and SYSTEM_ROLE_ID.

Referenced by assignSave().

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

◆ checkPermission()

ilLocalUserGUI::checkPermission ( string  $permission)
protected

Definition at line 443 of file class.ilLocalUserGUI.php.

443 : void
444 {
445 if (!$this->access->checkAccess($permission, "", $_GET["ref_id"])) {
446 $this->tpl->setOnScreenMessage('failure', $this->lng->txt("permission_denied"), true);
447 $this->ctrl->redirect($this, "");
448 }
449 }

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

Referenced by deleteUsers(), and performDeleteUsers().

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

◆ deleteUsers()

ilLocalUserGUI::deleteUsers ( )

Definition at line 179 of file class.ilLocalUserGUI.php.

179 : void
180 {
181 $this->checkPermission("cat_administrate_users");
182 if (!count($_POST['id'])) {
183 $this->tpl->setOnScreenMessage('failure', $this->lng->txt('no_users_selected'));
184 $this->index();
185 return;
186 }
187 $confirm = new ilConfirmationGUI();
188 $confirm->setFormAction($this->ctrl->getFormAction($this));
189 $confirm->setHeaderText($this->lng->txt('sure_delete_selected_users'));
190 $confirm->setConfirm($this->lng->txt('delete'), 'performDeleteUsers');
191 $confirm->setCancel($this->lng->txt('cancel'), 'index');
192 foreach ($_POST['id'] as $user) {
194 $confirm->addItem(
195 'user_ids[]',
196 $user,
197 $name['lastname'] . ', ' . $name['firstname'] . ' [' . $name['login'] . ']'
198 );
199 }
200 $this->tpl->setContent($confirm->getHTML());
201 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
checkPermission(string $permission)
static _lookupName(int $a_user_id)
lookup user name
if($format !==null) $name
Definition: metadata.php:247

References $name, $user, ilObjUser\_lookupName(), checkPermission(), ILIAS\Repository\ctrl(), index(), and ILIAS\Repository\lng().

+ Here is the call graph for this function:

◆ executeCommand()

ilLocalUserGUI::executeCommand ( )

Definition at line 68 of file class.ilLocalUserGUI.php.

68 : bool
69 {
70 $cmd = $this->ctrl->getCmd();
71 switch ($cmd) {
72 case "assignRoles":
73 case "assignSave":
74 $this->tabsGui->clearTargets();
75 $this->tabsGui->setBackTarget(
76 $this->lng->txt("back"),
77 $this->ctrl->getLinkTargetByClass("illocalusergui", 'index')
78 );
79 $this->$cmd();
80 break;
81 default:
82 $this->$cmd();
83 break;
84 }
85
86 return true;
87 }

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

+ Here is the call graph for this function:

◆ getAssignableRoles()

ilLocalUserGUI::getAssignableRoles ( )
Exceptions
ilObjectNotFoundException
ilDatabaseException

Definition at line 338 of file class.ilLocalUserGUI.php.

338 : array
339 {
340 // check local user
341 $tmp_obj = ilObjectFactory::getInstanceByObjId($_REQUEST['obj_id']);
342 // Admin => all roles
343 if (in_array(SYSTEM_ROLE_ID, $this->rbacReview->assignedRoles($this->user->getId())) === true) {
344 $global_roles = $this->rbacReview->getGlobalRolesArray();
345 } elseif ($tmp_obj->getTimeLimitOwner() == $this->object->getRefId()) {
346 $global_roles = $this->rbacReview->getGlobalAssignableRoles();
347 } else {
348 $global_roles = array();
349 }
350
351 return array_merge($global_roles, $this->rbacReview->getAssignableChildRoles($this->object->getRefId()));
352 }

References ilObjectFactory\getInstanceByObjId(), and SYSTEM_ROLE_ID.

Referenced by assignRoles(), and assignSave().

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

◆ getObject()

ilLocalUserGUI::getObject ( )

Definition at line 88 of file class.ilLocalUserGUI.php.

89 {
90 return $this->object;
91 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

References $object.

◆ index()

ilLocalUserGUI::index ( bool  $show_delete = false)

Definition at line 109 of file class.ilLocalUserGUI.php.

109 : bool
110 {
111 $this->tpl->addBlockfile(
112 'ADM_CONTENT',
113 'adm_content',
114 'tpl.cat_admin_users.html',
115 "Modules/Category"
116 );
117 if (count($this->rbacReview->getGlobalAssignableRoles())
118 or in_array(SYSTEM_ROLE_ID, $this->rbacReview->assignedRoles($this->user->getId()))
119 ) {
120 $this->toolbar->addButton(
121 $this->lng->txt('add_user'),
122 $this->ctrl->getLinkTargetByClass('ilobjusergui', 'create')
123 );
124 $this->toolbar->addButton(
125 $this->lng->txt('import_users'),
126 $this->ctrl->getLinkTargetByClass('ilobjuserfoldergui', 'importUserForm')
127 );
128 } else {
129 $this->tpl->setOnScreenMessage('info', $this->lng->txt('no_roles_user_can_be_assigned_to'));
130 }
131 if ($show_delete) {
132 $this->tpl->setCurrentBlock("confirm_delete");
133 $this->tpl->setVariable("CONFIRM_FORMACTION", $this->ctrl->getFormAction($this));
134 $this->tpl->setVariable("TXT_CANCEL", $this->lng->txt('cancel'));
135 $this->tpl->setVariable("CONFIRM_CMD", 'performDeleteUsers');
136 $this->tpl->setVariable("TXT_CONFIRM", $this->lng->txt('delete'));
137 $this->tpl->parseCurrentBlock();
138 }
139 $table = new ilUserTableGUI($this, 'index', ilUserTableGUI::MODE_LOCAL_USER);
140 $this->tpl->setVariable('USERS_TABLE', $table->getHTML());
141
142 return true;
143 }

References ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), ilUserTableGUI\MODE_LOCAL_USER, SYSTEM_ROLE_ID, and ILIAS\Repository\toolbar().

Referenced by applyFilter(), assignRoles(), assignSave(), deleteUsers(), and resetFilter().

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

◆ initTableGUI()

ilLocalUserGUI::initTableGUI ( )
protected

Definition at line 420 of file class.ilLocalUserGUI.php.

420 : ilTableGUI
421 {
422 return new ilTableGUI([], false);
423 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

Referenced by showRolesTable().

+ Here is the caller graph for this function:

◆ performDeleteUsers()

ilLocalUserGUI::performDeleteUsers ( )

Definition at line 160 of file class.ilLocalUserGUI.php.

160 : bool
161 {
162 $this->checkPermission("cat_administrate_users");
163 foreach ($_POST['user_ids'] as $user_id) {
164 if (!in_array($user_id, ilLocalUser::_getAllUserIds($_GET['ref_id']))) {
165 $this->logger->write(__FILE__ . ":" . __LINE__ . " User with id $user_id could not be found.");
166 $this->tpl->setOnScreenMessage('failure', $this->lng->txt('user_not_found_to_delete'));
167 }
168 if (!$tmp_obj = ilObjectFactory::getInstanceByObjId($user_id, false)) {
169 continue;
170 }
171 $tmp_obj->delete();
172 }
173 $this->tpl->setOnScreenMessage('success', $this->lng->txt('deleted_users'), true);
174 $this->ctrl->redirect($this, 'index');
175
176 return true;
177 }

References $_GET, ilLocalUser\_getAllUserIds(), checkPermission(), ILIAS\Repository\ctrl(), ilObjectFactory\getInstanceByObjId(), ILIAS\Repository\lng(), and ILIAS\Repository\logger().

+ Here is the call graph for this function:

◆ resetFilter()

ilLocalUserGUI::resetFilter ( )
protected

Definition at line 93 of file class.ilLocalUserGUI.php.

93 : void
94 {
95 $table = new ilUserTableGUI($this, "index", ilUserTableGUI::MODE_LOCAL_USER);
96 $table->resetOffset();
97 $table->resetFilter();
98 $this->index();
99 }

References index(), and ilUserTableGUI\MODE_LOCAL_USER.

+ Here is the call graph for this function:

◆ setTableGUIBasicData()

ilLocalUserGUI::setTableGUIBasicData (   $tbl,
$result_set,
string  $a_from = "" 
)
protected

Definition at line 425 of file class.ilLocalUserGUI.php.

425 : void
426 {
427 $order = isset($_GET["sort_by"]) ? $_GET["sort_by"] : 'title';
428 $direction = isset($_GET["sort_order"]) ? $_GET["sort_order"] : 'asc';
429 $offset = isset($_GET["offset"]) ? $_GET["offset"] : 0;
430 $limit = isset($_GET["limit"]) ? $_GET["limit"] : 0;
431
432 if ($a_from == 'clipboardObject') $tbl->disable("footer");
433 $tbl->disable("linkbar");
434
435 $tbl->setOrderColumn((string) $order);
436 $tbl->setOrderDirection((string) $direction);
437 $tbl->setOffset((int) $offset);
438 $tbl->setLimit((int) $limit);
439 $tbl->setFooter("tblfooter", $this->lng->txt("previous"), $this->lng->txt("next"));
440 $tbl->setData($result_set);
441 }

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

Referenced by showRolesTable().

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

◆ showRolesTable()

ilLocalUserGUI::showRolesTable (   $a_result_set,
  $a_from = "" 
)
Exceptions
ilObjectNotFoundException
ilDatabaseException
ilTemplateException
ilCtrlException

Definition at line 361 of file class.ilLocalUserGUI.php.

361 : bool
362 {
363 if ($this->access->checkAccess("cat_administrate_users", "", $_GET["ref_id"]) === false) {
364 $this->tpl->setOnScreenMessage('failure', $this->lng->txt("permission_denied"), true);
365 $this->ctrl->redirect($this, "");
366 }
367 $tbl = $this->initTableGUI();
368 $tpl = $tbl->getTemplateObject();
369 // SET FORMAACTION
370 $tpl->setCurrentBlock("tbl_form_header");
371 $this->ctrl->setParameter($this, 'obj_id', $_GET['obj_id']);
372 $tpl->setVariable("FORMACTION", $this->ctrl->getFormAction($this));
374 // SET FOOTER BUTTONS
375 $tpl->setVariable("IMG_ARROW", ilUtil::getImagePath("arrow_downright.svg"));
376 $tpl->setVariable("BTN_NAME", "assignSave");
377 $tpl->setVariable("BTN_VALUE", $this->lng->txt("change_assignment"));
378 $tpl->setCurrentBlock("tbl_action_row");
380 $tmp_obj = ilObjectFactory::getInstanceByObjId($_GET['obj_id']);
381 $title = $this->lng->txt('role_assignment') . ' (' . $tmp_obj->getFullname() . ')';
382 $tbl->setTitle($title, "icon_role.svg", $this->lng->txt("role_assignment"));
383 $tbl->setHeaderNames(array(
384 '',
385 $this->lng->txt("title"),
386 $this->lng->txt('description'),
387 $this->lng->txt("type"),
388 ));
389 $tbl->setHeaderVars(array(
390 "",
391 "title",
392 "description",
393 "type",
394 ), (get_class($this->parentGui) == 'ilObjOrgUnitGUI')
395 ? array(
396 "ref_id" => $this->object->getRefId(),
397 "cmd" => "assignRoles",
398 "obj_id" => $_GET['obj_id'],
399 "cmdNode" => $_GET["cmdNode"],
400 "baseClass" => 'ilAdministrationGUI',
401 "admin_mode" => "settings",
402 )
403 : array(
404 "ref_id" => $this->object->getRefId(),
405 "cmd" => "assignRoles",
406 "obj_id" => $_GET['obj_id'],
407 "cmdClass" => "ilobjcategorygui",
408 "baseClass" => 'ilRepositoryGUI',
409 "cmdNode" => $_GET["cmdNode"],
410 ));
411 $tbl->setColumnWidth(array("4%", "35%", "45%", "16%"));
412 $this->set_unlimited = true;
413 $this->setTableGUIBasicData($tbl, $a_result_set, $a_from);
414 $tbl->render();
415 $this->tpl->setVariable('OBJECTS', $tbl->getTemplateObject()->get());
416
417 return true;
418 }
setTableGUIBasicData($tbl, &$result_set, string $a_from="")
ilGlobalTemplateInterface $tpl
static getImagePath(string $img, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory)
setCurrentBlock(string $part=self::DEFAULT_BLOCK)
Sets the template to the given block.
parseCurrentBlock(string $block_name=self::DEFAULT_BLOCK)
Parses the given block.
setVariable(string $variable, $value='')
Sets the given variable to the given value.

References $_GET, $tpl, ILIAS\Repository\access(), ILIAS\Repository\ctrl(), ilUtil\getImagePath(), ilObjectFactory\getInstanceByObjId(), initTableGUI(), ILIAS\Repository\lng(), ILIAS\Repository\object(), ilGlobalTemplateInterface\parseCurrentBlock(), ilGlobalTemplateInterface\setCurrentBlock(), setTableGUIBasicData(), and ilGlobalTemplateInterface\setVariable().

Referenced by assignRoles().

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

Field Documentation

◆ $access

ilAccessHandler ilLocalUserGUI::$access
private

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

◆ $ctrl

ilCtrl ilLocalUserGUI::$ctrl
private

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

◆ $form

ilPropertyFormGUI ilLocalUserGUI::$form
private

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

◆ $lng

ilLanguage ilLocalUserGUI::$lng
private

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

◆ $logger

ILIAS DI LoggingServices ilLocalUserGUI::$logger
private

Definition at line 42 of file class.ilLocalUserGUI.php.

◆ $object

ilLocalUserGUI::$object
private

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

Referenced by getObject().

◆ $parentGui

ilObjectGUI ilLocalUserGUI::$parentGui
private

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

Referenced by __construct().

◆ $rbacAdmin

ilRbacAdmin ilLocalUserGUI::$rbacAdmin
private

Definition at line 40 of file class.ilLocalUserGUI.php.

◆ $rbacReview

ilRbacReview ilLocalUserGUI::$rbacReview
private

Definition at line 39 of file class.ilLocalUserGUI.php.

◆ $rbacSystem

ilRbacSystem ilLocalUserGUI::$rbacSystem
private

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

◆ $tabsGui

ilTabsGUI ilLocalUserGUI::$tabsGui
private

Definition at line 29 of file class.ilLocalUserGUI.php.

◆ $toolbar

ilToolbarGUI ilLocalUserGUI::$toolbar
private

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

◆ $tpl

ilGlobalTemplateInterface ilLocalUserGUI::$tpl
private

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

Referenced by showRolesTable().

◆ $user

ilObjUser ilLocalUserGUI::$user
private

Definition at line 41 of file class.ilLocalUserGUI.php.

Referenced by deleteUsers().


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