ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilMStListUsersGUI Class Reference

Class ilMStListUsersGUI. More...

+ Collaboration diagram for ilMStListUsersGUI:

Public Member Functions

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

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
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilMStListUsersGUI::__construct ( )

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

31 {
32 $this->access = ilMyStaffAccess::getInstance();
33 }

References ilMyStaffAccess\getInstance().

+ Here is the call graph for this function:

Member Function Documentation

◆ applyFilter()

ilMStListUsersGUI::applyFilter ( )

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

104 {
105 $this->table = new ilMStListUsersTableGUI($this, self::CMD_APPLY_FILTER);
106 $this->table->writeFilterToSession();
107 $this->table->resetOffset();
108 $this->index();
109 }
Class ilMStListUsersTableGUI.

References index().

+ Here is the call graph for this function:

◆ cancel()

ilMStListUsersGUI::cancel ( )

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

128 {
129 global $DIC;
130
131 $DIC->ctrl()->redirect($this);
132 }
global $DIC
Definition: saml.php:7

References $DIC.

◆ checkAccessOrFail()

ilMStListUsersGUI::checkAccessOrFail ( )
protected

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

40 {
41 global $DIC;
42
43 if ($this->access->hasCurrentUserAccessToMyStaff()) {
44 return;
45 } else {
46 ilUtil::sendFailure($DIC->language()->txt("permission_denied"), true);
47 $DIC->ctrl()->redirectByClass(ilPersonalDesktopGUI::class, "");
48 }
49 }
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 55 of file class.ilMStListUsersGUI.php.

56 {
57 global $DIC;
58
59 $this->checkAccessOrFail();
60
61 $cmd = $DIC->ctrl()->getCmd();
62
63 switch ($cmd) {
66 case self::CMD_INDEX:
69 $this->$cmd();
70 break;
71 default:
72 $this->index();
73 break;
74 }
75 }

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:

◆ getActions()

ilMStListUsersGUI::getActions ( )

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

139 {
140 global $DIC;
141
142 $mst_lus_usr_id = $DIC->http()->request()->getQueryParams()['mst_lus_usr_id'];
143 if ($mst_lus_usr_id > 0) {
144 $selection = new ilAdvancedSelectionListGUI();
145
146 $DIC->ctrl()->setParameterByClass(ilMStShowUserGUI::class, 'usr_id', $mst_lus_usr_id);
147 $selection->addItem($DIC->language()->txt('mst_show_courses'), '', $DIC->ctrl()->getLinkTargetByClass(array(
148 ilPersonalDesktopGUI::class,
149 ilMyStaffGUI::class,
150 ilMStShowUserGUI::class,
151 )));
152
153 $selection = ilMyStaffGUI::extendActionMenuWithUserActions($selection, $mst_lus_usr_id, rawurlencode($DIC->ctrl()
154 ->getLinkTarget($this, self::CMD_INDEX)));
155
156 echo $selection->getHTML(true);
157 }
158 exit;
159 }
exit
Definition: backend.php:16
User interface class for advanced drop-down selection lists.

References $DIC, and exit.

◆ index()

ilMStListUsersGUI::index ( )

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

82 {
83 $this->listUsers();
84 }

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 90 of file class.ilMStListUsersGUI.php.

91 {
92 global $DIC;
93
94 $this->table = new ilMStListUsersTableGUI($this, self::CMD_INDEX);
95 $this->table->setTitle($DIC->language()->txt('mst_list_users'));
96 $DIC->ui()->mainTemplate()->setContent($this->table->getHTML());
97 }

References $DIC.

Referenced by index().

+ Here is the caller graph for this function:

◆ resetFilter()

ilMStListUsersGUI::resetFilter ( )

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

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

References index().

+ Here is the call graph for this function:

Field Documentation

◆ $access

ilMStListUsersGUI::$access
protected

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

◆ $table

ilMStListUsersGUI::$table
protected

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

◆ CMD_ADD_USER_AUTO_COMPLETE

const ilMStListUsersGUI::CMD_ADD_USER_AUTO_COMPLETE = 'addUserAutoComplete'

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

Referenced by executeCommand().

◆ CMD_APPLY_FILTER

const ilMStListUsersGUI::CMD_APPLY_FILTER = 'applyFilter'

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

Referenced by executeCommand().

◆ CMD_GET_ACTIONS

const ilMStListUsersGUI::CMD_GET_ACTIONS = "getActions"

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

Referenced by executeCommand(), and ilMStListUsersTableGUI\fillRow().

◆ CMD_INDEX

const ilMStListUsersGUI::CMD_INDEX = 'index'

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

Referenced by executeCommand().

◆ CMD_RESET_FILTER

const ilMStListUsersGUI::CMD_RESET_FILTER = 'resetFilter'

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

Referenced by executeCommand().


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