ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
ilMStListCompetencesSkillsGUI Class Reference
+ Collaboration diagram for ilMStListCompetencesSkillsGUI:

Public Member Functions

 __construct (Container $dic)
 
 executeCommand ()
 
 index ()
 
 listUsers ()
 
 applyFilter ()
 
 resetFilter ()
 
 getId ()
 
 cancel ()
 

Data Fields

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

Protected Member Functions

 checkAccessOrFail ()
 
 getActions ()
 

Protected Attributes

 $table
 
 $access
 

Private Attributes

 $dic
 

Detailed Description

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

Constructor & Destructor Documentation

◆ __construct()

ilMStListCompetencesSkillsGUI::__construct ( Container  $dic)
Parameters
Container$dic

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

38 {
39 $this->access = ilMyStaffAccess::getInstance();
40 $this->dic = $dic;
41 }

References $dic.

Member Function Documentation

◆ applyFilter()

ilMStListCompetencesSkillsGUI::applyFilter ( )

Definition at line 93 of file class.ilMStListCompetencesSkillsGUI.php.

93 : void
94 {
95 $this->table = new ilMStListCompetencesSkillsTableGUI($this, self::CMD_APPLY_FILTER, $this->dic);
96 $this->table->writeFilterToSession();
97 $this->table->resetOffset();
98 $this->index();
99 }

References index().

+ Here is the call graph for this function:

◆ cancel()

ilMStListCompetencesSkillsGUI::cancel ( )

Definition at line 122 of file class.ilMStListCompetencesSkillsGUI.php.

122 : void
123 {
124 $this->dic->ctrl()->redirect($this);
125 }

◆ checkAccessOrFail()

ilMStListCompetencesSkillsGUI::checkAccessOrFail ( )
protected

Definition at line 44 of file class.ilMStListCompetencesSkillsGUI.php.

44 : void
45 {
46 if ($this->access->hasCurrentUserAccessToMyStaff()) {
47 return;
48 } else {
49 ilUtil::sendFailure($this->dic->language()->txt("permission_denied"), true);
50 $this->dic->ctrl()->redirectByClass(ilDashboardGUI::class, "");
51 }
52 }
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.

References ilUtil\sendFailure().

Referenced by listUsers().

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

◆ executeCommand()

ilMStListCompetencesSkillsGUI::executeCommand ( )

Definition at line 55 of file class.ilMStListCompetencesSkillsGUI.php.

55 : void
56 {
57 $cmd = $this->dic->ctrl()->getCmd();
58 $next_class = $this->dic->ctrl()->getNextClass();
59 switch ($next_class) {
60 default:
61 switch ($cmd) {
64 case self::CMD_INDEX:
66 $this->$cmd();
67 break;
68 default:
69 $this->index();
70 break;
71 }
72 break;
73 }
74 }

References CMD_APPLY_FILTER, CMD_GET_ACTIONS, CMD_INDEX, CMD_RESET_FILTER, and index().

+ Here is the call graph for this function:

◆ getActions()

ilMStListCompetencesSkillsGUI::getActions ( )
protected

Definition at line 128 of file class.ilMStListCompetencesSkillsGUI.php.

128 : void
129 {
130 global $DIC;
131
132 $mst_co_usr_id = $DIC->http()->request()->getQueryParams()['mst_lcom_usr_id'];
133
134 if ($mst_co_usr_id > 0) {
135 $selection = new ilAdvancedSelectionListGUI();
136
137 $selection = ilMyStaffGUI::extendActionMenuWithUserActions($selection, $mst_co_usr_id, rawurlencode($DIC->ctrl()
138 ->getLinkTarget($this, self::CMD_INDEX)));
139
140 echo $selection->getHTML(true);
141 }
142 exit;
143 }
User interface class for advanced drop-down selection lists.
exit
Definition: login.php:29
$DIC
Definition: xapitoken.php:46

References $DIC, and exit.

◆ getId()

ilMStListCompetencesSkillsGUI::getId ( )
Returns
string

Definition at line 114 of file class.ilMStListCompetencesSkillsGUI.php.

114 : string
115 {
116 $this->table = new ilMStListCompetencesSkillsTableGUI($this, self::CMD_INDEX, $this->dic);
117
118 return $this->table->getId();
119 }

◆ index()

ilMStListCompetencesSkillsGUI::index ( )

Definition at line 77 of file class.ilMStListCompetencesSkillsGUI.php.

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

ilMStListCompetencesSkillsGUI::listUsers ( )

Definition at line 83 of file class.ilMStListCompetencesSkillsGUI.php.

83 : void
84 {
85 $this->checkAccessOrFail();
86
87 $this->table = new ilMStListCompetencesSkillsTableGUI($this, self::CMD_INDEX, $this->dic);
88 $this->dic->ui()->mainTemplate()->setTitle($this->dic->language()->txt('mst_list_competences'));
89 $this->dic->ui()->mainTemplate()->setContent($this->table->getHTML());
90 }

References checkAccessOrFail().

Referenced by index().

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

◆ resetFilter()

ilMStListCompetencesSkillsGUI::resetFilter ( )

Definition at line 102 of file class.ilMStListCompetencesSkillsGUI.php.

102 : void
103 {
104 $this->table = new ilMStListCompetencesSkillsTableGUI($this, self::CMD_RESET_FILTER, $this->dic);
105 $this->table->resetOffset();
106 $this->table->resetFilter();
107 $this->index();
108 }

References index().

+ Here is the call graph for this function:

Field Documentation

◆ $access

ilMStListCompetencesSkillsGUI::$access
protected

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

◆ $dic

ilMStListCompetencesSkillsGUI::$dic
private

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

Referenced by __construct().

◆ $table

ilMStListCompetencesSkillsGUI::$table
protected

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

◆ CMD_APPLY_FILTER

const ilMStListCompetencesSkillsGUI::CMD_APPLY_FILTER = 'applyFilter'

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

Referenced by executeCommand().

◆ CMD_GET_ACTIONS

const ilMStListCompetencesSkillsGUI::CMD_GET_ACTIONS = "getActions"

◆ CMD_INDEX

const ilMStListCompetencesSkillsGUI::CMD_INDEX = 'index'

Definition at line 17 of file class.ilMStListCompetencesSkillsGUI.php.

Referenced by executeCommand().

◆ CMD_RESET_FILTER

const ilMStListCompetencesSkillsGUI::CMD_RESET_FILTER = 'resetFilter'

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

Referenced by executeCommand().


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