ILIAS  release_7 Revision v7.30-3-g800a261c036
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

 $table
 
 $access
 
 $help
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilMStListUsersGUI::__construct ( )

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

38 {
39 global $DIC;
40 $this->access = ilMyStaffAccess::getInstance();
41 $this->help = $DIC->help();
42 $this->help->setScreenIdComponent('msta');
43 }
global $DIC
Definition: goto.php:24
help()
Definition: help.php:2

References $DIC, and help().

+ Here is the call graph for this function:

Member Function Documentation

◆ applyFilter()

ilMStListUsersGUI::applyFilter ( )

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

116 {
117 $this->table = new ilMStListUsersTableGUI($this, self::CMD_APPLY_FILTER);
118 $this->table->writeFilterToSession();
119 $this->table->resetOffset();
120 $this->index();
121 }

References index().

+ Here is the call graph for this function:

◆ cancel()

ilMStListUsersGUI::cancel ( )

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

140 {
141 global $DIC;
142
143 $DIC->ctrl()->redirect($this);
144 }

References $DIC.

◆ checkAccessOrFail()

ilMStListUsersGUI::checkAccessOrFail ( )
protected

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

50 {
51 global $DIC;
52
53 if ($this->access->hasCurrentUserAccessToMyStaff()) {
54 return;
55 } else {
56 ilUtil::sendFailure($DIC->language()->txt("permission_denied"), true);
57 $DIC->ctrl()->redirectByClass(ilDashboardGUI::class, "");
58 }
59 }
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.

References $DIC, and ilUtil\sendFailure().

Referenced by executeCommand().

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

◆ executeCommand()

ilMStListUsersGUI::executeCommand ( )

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

66 {
67 global $DIC;
68
69 $this->checkAccessOrFail();
70
71 $cmd = $DIC->ctrl()->getCmd();
72
73 switch ($cmd) {
76 case self::CMD_INDEX:
79 $this->$cmd();
80 break;
81 default:
82 $this->index();
83 break;
84 }
85 }

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 ( )

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

92 {
93 $this->listUsers();
94 }

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 ( )

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

101 {
102 global $DIC;
103
104 $this->help->setScreenId('users_list');
105 $this->table = new ilMStListUsersTableGUI($this, self::CMD_INDEX);
106 $DIC->ui()->mainTemplate()->setTitle($DIC->language()->txt('mst_list_users'));
107 $DIC->ui()->mainTemplate()->setTitleIcon(ilUtil::getImagePath('icon_stff.svg'));
108 $DIC->ui()->mainTemplate()->setContent($this->table->getHTML());
109 }
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)

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

Referenced by index().

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

◆ resetFilter()

ilMStListUsersGUI::resetFilter ( )

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

128 {
129 $this->table = new ilMStListUsersTableGUI($this, self::CMD_RESET_FILTER);
130 $this->table->resetOffset();
131 $this->table->resetFilter();
132 $this->index();
133 }

References index().

+ Here is the call graph for this function:

Field Documentation

◆ $access

ilMStListUsersGUI::$access
protected

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

◆ $help

ilMStListUsersGUI::$help
protected

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

◆ $table

ilMStListUsersGUI::$table
protected

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

◆ CMD_ADD_USER_AUTO_COMPLETE

const ilMStListUsersGUI::CMD_ADD_USER_AUTO_COMPLETE = 'addUserAutoComplete'

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

Referenced by executeCommand().

◆ CMD_APPLY_FILTER

const ilMStListUsersGUI::CMD_APPLY_FILTER = 'applyFilter'

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

Referenced by executeCommand().

◆ CMD_GET_ACTIONS

const ilMStListUsersGUI::CMD_GET_ACTIONS = "getActions"

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

Referenced by executeCommand().

◆ CMD_INDEX

◆ CMD_RESET_FILTER

const ilMStListUsersGUI::CMD_RESET_FILTER = 'resetFilter'

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

Referenced by executeCommand().


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