ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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.

References ilMyStaffAccess\getInstance().

31  {
32  $this->access = ilMyStaffAccess::getInstance();
33  }
+ Here is the call graph for this function:

Member Function Documentation

◆ applyFilter()

ilMStListUsersGUI::applyFilter ( )

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

References index().

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.
+ Here is the call graph for this function:

◆ cancel()

ilMStListUsersGUI::cancel ( )

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

References $DIC.

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

◆ checkAccessOrFail()

ilMStListUsersGUI::checkAccessOrFail ( )
protected

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

References $DIC, and ilUtil\sendFailure().

Referenced by executeCommand().

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  }
global $DIC
Definition: saml.php:7
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
+ 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.

References $DIC, checkAccessOrFail(), and index().

56  {
57  global $DIC;
58 
59  $this->checkAccessOrFail();
60 
61  $cmd = $DIC->ctrl()->getCmd();
62 
63  switch ($cmd) {
64  case self::CMD_RESET_FILTER:
65  case self::CMD_APPLY_FILTER:
66  case self::CMD_INDEX:
67  case self::CMD_ADD_USER_AUTO_COMPLETE:
68  case self::CMD_GET_ACTIONS:
69  $this->$cmd();
70  break;
71  default:
72  $this->index();
73  break;
74  }
75  }
global $DIC
Definition: saml.php:7
+ Here is the call graph for this function:

◆ getActions()

ilMStListUsersGUI::getActions ( )

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

References $DIC, array, and exit.

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  }
global $DIC
Definition: saml.php:7
Create styles array
The data for the language used.
User interface class for advanced drop-down selection lists.

◆ index()

ilMStListUsersGUI::index ( )

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

References listUsers().

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

82  {
83  $this->listUsers();
84  }
+ 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.

References $DIC.

Referenced by index().

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  }
global $DIC
Definition: saml.php:7
Class ilMStListUsersTableGUI.
+ Here is the caller graph for this function:

◆ resetFilter()

ilMStListUsersGUI::resetFilter ( )

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

References index().

116  {
117  $this->table = new ilMStListUsersTableGUI($this, self::CMD_RESET_FILTER);
118  $this->table->resetOffset();
119  $this->table->resetFilter();
120  $this->index();
121  }
Class ilMStListUsersTableGUI.
+ 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.

◆ CMD_APPLY_FILTER

const ilMStListUsersGUI::CMD_APPLY_FILTER = 'applyFilter'

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

◆ CMD_GET_ACTIONS

const ilMStListUsersGUI::CMD_GET_ACTIONS = "getActions"

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

Referenced by ilMStListUsersTableGUI\fillRow().

◆ CMD_INDEX

const ilMStListUsersGUI::CMD_INDEX = 'index'

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

◆ CMD_RESET_FILTER

const ilMStListUsersGUI::CMD_RESET_FILTER = 'resetFilter'

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


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