18 declare(strict_types=1);
45 $this->main_tpl = $DIC->ui()->mainTemplate();
46 $this->
access = ilMyStaffAccess::getInstance();
47 $this->
help = $DIC->help();
48 $this->
ctrl = $DIC->ctrl();
50 $this->
help->setScreenIdComponent(
'msta');
55 if ($this->
access->hasCurrentUserAccessToMyStaff()) {
58 $this->main_tpl->setOnScreenMessage(
'failure', $this->
language->txt(
"permission_denied"),
true);
59 $this->
ctrl->redirectByClass(ilDashboardGUI::class,
"");
69 $cmd = $DIC->ctrl()->getCmd();
72 case self::CMD_RESET_FILTER:
73 case self::CMD_APPLY_FILTER:
75 case self::CMD_ADD_USER_AUTO_COMPLETE:
76 case self::CMD_GET_ACTIONS:
85 final public function index(): void
94 $this->
help->setScreenId(
'users_list');
96 $DIC->ui()->mainTemplate()->setTitle($DIC->language()->txt(
'mst_list_users'));
98 $DIC->ui()->mainTemplate()->setContent($this->table->getHTML());
104 $this->table->writeFilterToSession();
105 $this->table->resetOffset();
112 $this->table->resetOffset();
113 $this->table->resetFilter();
121 $DIC->ctrl()->redirect($this);
ilMStListUsersTableGUI $table
static getImagePath(string $img, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory)
ilGlobalTemplateInterface $main_tpl
Class ilMStListUsersTableGUI.
const CMD_ADD_USER_AUTO_COMPLETE