ILIAS  release_8 Revision v8.24
ilMStListUsersGUI Class Reference

Class ilMStListUsersGUI. More...

+ Collaboration diagram for ilMStListUsersGUI:

Public Member Functions

 __construct ()
 
 executeCommand ()
 
 index ()
 
 listUsers ()
 
 applyFilter ()
 
 resetFilter ()
 
 cancel ()
 

Data Fields

const CMD_RESET_FILTER = 'resetFilter'
 
const CMD_APPLY_FILTER = 'applyFilter'
 
const CMD_INDEX = 'index'
 
const CMD_GET_ACTIONS = "getActions"
 
const CMD_ADD_USER_AUTO_COMPLETE = 'addUserAutoComplete'
 

Protected Member Functions

 checkAccessOrFail ()
 

Protected Attributes

ilMStListUsersTableGUI $table
 
ilMyStaffAccess $access
 

Private Attributes

ilGlobalTemplateInterface $main_tpl
 
ilHelpGUI $help
 
ilCtrlInterface $ctrl
 
ilLanguage $language
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilMStListUsersGUI::__construct ( )

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

43 {
44 global $DIC;
45 $this->main_tpl = $DIC->ui()->mainTemplate();
46 $this->access = ilMyStaffAccess::getInstance();
47 $this->help = $DIC->help();
48 $this->ctrl = $DIC->ctrl();
49 $this->language = $DIC->language();
50 $this->help->setScreenIdComponent('msta');
51 }
global $DIC
Definition: feed.php:28

References $DIC, ILIAS\Repository\access(), ILIAS\Repository\ctrl(), ILIAS\Repository\help(), and ILIAS\UI\examples\Symbol\Glyph\Language\language().

+ Here is the call graph for this function:

Member Function Documentation

◆ applyFilter()

ilMStListUsersGUI::applyFilter ( )
final

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

101 : void
102 {
103 $this->table = new ilMStListUsersTableGUI($this, self::CMD_APPLY_FILTER);
104 $this->table->writeFilterToSession();
105 $this->table->resetOffset();
106 $this->index();
107 }

References index().

+ Here is the call graph for this function:

◆ cancel()

ilMStListUsersGUI::cancel ( )
final

Definition at line 117 of file class.ilMStListUsersGUI.php.

117 : void
118 {
119 global $DIC;
120
121 $DIC->ctrl()->redirect($this);
122 }

References $DIC.

◆ checkAccessOrFail()

ilMStListUsersGUI::checkAccessOrFail ( )
protected

Definition at line 53 of file class.ilMStListUsersGUI.php.

53 : void
54 {
55 if ($this->access->hasCurrentUserAccessToMyStaff()) {
56 return;
57 } else {
58 $this->main_tpl->setOnScreenMessage('failure', $this->language->txt("permission_denied"), true);
59 $this->ctrl->redirectByClass(ilDashboardGUI::class, "");
60 }
61 }

References ILIAS\Repository\access(), ILIAS\Repository\ctrl(), and ILIAS\UI\examples\Symbol\Glyph\Language\language().

Referenced by executeCommand().

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

◆ executeCommand()

ilMStListUsersGUI::executeCommand ( )
final

Definition at line 63 of file class.ilMStListUsersGUI.php.

63 : void
64 {
65 global $DIC;
66
67 $this->checkAccessOrFail();
68
69 $cmd = $DIC->ctrl()->getCmd();
70
71 switch ($cmd) {
74 case self::CMD_INDEX:
77 $this->$cmd();
78 break;
79 default:
80 $this->index();
81 break;
82 }
83 }

References $DIC, checkAccessOrFail(), CMD_ADD_USER_AUTO_COMPLETE, CMD_APPLY_FILTER, CMD_GET_ACTIONS, CMD_INDEX, CMD_RESET_FILTER, and index().

+ Here is the call graph for this function:

◆ index()

ilMStListUsersGUI::index ( )
final

Definition at line 85 of file class.ilMStListUsersGUI.php.

85 : void
86 {
87 $this->listUsers();
88 }

References listUsers().

Referenced by applyFilter(), executeCommand(), and resetFilter().

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

◆ listUsers()

ilMStListUsersGUI::listUsers ( )
final

Definition at line 90 of file class.ilMStListUsersGUI.php.

90 : void
91 {
92 global $DIC;
93
94 $this->help->setScreenId('users_list');
95 $this->table = new ilMStListUsersTableGUI($this, self::CMD_INDEX);
96 $DIC->ui()->mainTemplate()->setTitle($DIC->language()->txt('mst_list_users'));
97 $DIC->ui()->mainTemplate()->setTitleIcon(ilUtil::getImagePath('icon_stff.svg'));
98 $DIC->ui()->mainTemplate()->setContent($this->table->getHTML());
99 }
static getImagePath(string $img, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory)

References $DIC, ilUtil\getImagePath(), and ILIAS\Repository\help().

Referenced by index().

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

◆ resetFilter()

ilMStListUsersGUI::resetFilter ( )
final

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

109 : void
110 {
111 $this->table = new ilMStListUsersTableGUI($this, self::CMD_RESET_FILTER);
112 $this->table->resetOffset();
113 $this->table->resetFilter();
114 $this->index();
115 }

References index().

+ Here is the call graph for this function:

Field Documentation

◆ $access

ilMyStaffAccess ilMStListUsersGUI::$access
protected

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

◆ $ctrl

ilCtrlInterface ilMStListUsersGUI::$ctrl
private

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

◆ $help

ilHelpGUI ilMStListUsersGUI::$help
private

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

◆ $language

ilLanguage ilMStListUsersGUI::$language
private

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

◆ $main_tpl

ilGlobalTemplateInterface ilMStListUsersGUI::$main_tpl
private

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

◆ $table

ilMStListUsersTableGUI ilMStListUsersGUI::$table
protected

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

◆ CMD_ADD_USER_AUTO_COMPLETE

const ilMStListUsersGUI::CMD_ADD_USER_AUTO_COMPLETE = 'addUserAutoComplete'

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

Referenced by executeCommand().

◆ CMD_APPLY_FILTER

const ilMStListUsersGUI::CMD_APPLY_FILTER = 'applyFilter'

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

Referenced by executeCommand().

◆ CMD_GET_ACTIONS

const ilMStListUsersGUI::CMD_GET_ACTIONS = "getActions"

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

Referenced by executeCommand().

◆ CMD_INDEX

◆ CMD_RESET_FILTER

const ilMStListUsersGUI::CMD_RESET_FILTER = 'resetFilter'

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

Referenced by executeCommand().


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