ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
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.

References $DIC, and help().

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

Member Function Documentation

◆ applyFilter()

ilMStListUsersGUI::applyFilter ( )

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

References index().

116  {
117  $this->table = new ilMStListUsersTableGUI($this, self::CMD_APPLY_FILTER);
118  $this->table->writeFilterToSession();
119  $this->table->resetOffset();
120  $this->index();
121  }
+ Here is the call graph for this function:

◆ cancel()

ilMStListUsersGUI::cancel ( )

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

References $DIC.

140  {
141  global $DIC;
142 
143  $DIC->ctrl()->redirect($this);
144  }
global $DIC
Definition: goto.php:24

◆ checkAccessOrFail()

ilMStListUsersGUI::checkAccessOrFail ( )
protected

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

References $DIC, and ilUtil\sendFailure().

Referenced by executeCommand().

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  }
global $DIC
Definition: goto.php:24
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 65 of file class.ilMStListUsersGUI.php.

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

66  {
67  global $DIC;
68 
69  $this->checkAccessOrFail();
70 
71  $cmd = $DIC->ctrl()->getCmd();
72 
73  switch ($cmd) {
74  case self::CMD_RESET_FILTER:
75  case self::CMD_APPLY_FILTER:
76  case self::CMD_INDEX:
77  case self::CMD_ADD_USER_AUTO_COMPLETE:
78  case self::CMD_GET_ACTIONS:
79  $this->$cmd();
80  break;
81  default:
82  $this->index();
83  break;
84  }
85  }
global $DIC
Definition: goto.php:24
+ Here is the call graph for this function:

◆ index()

ilMStListUsersGUI::index ( )

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

References listUsers().

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

92  {
93  $this->listUsers();
94  }
+ 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.

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

Referenced by index().

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  }
help()
Definition: help.php:2
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
global $DIC
Definition: goto.php:24
+ 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.

References index().

128  {
129  $this->table = new ilMStListUsersTableGUI($this, self::CMD_RESET_FILTER);
130  $this->table->resetOffset();
131  $this->table->resetFilter();
132  $this->index();
133  }
+ 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.

◆ CMD_APPLY_FILTER

const ilMStListUsersGUI::CMD_APPLY_FILTER = 'applyFilter'

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

◆ CMD_GET_ACTIONS

const ilMStListUsersGUI::CMD_GET_ACTIONS = "getActions"

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

◆ CMD_INDEX

◆ CMD_RESET_FILTER

const ilMStListUsersGUI::CMD_RESET_FILTER = 'resetFilter'

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


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