ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilMStListCompetencesSkillsGUI Class Reference
+ Collaboration diagram for ilMStListCompetencesSkillsGUI:

Public Member Functions

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

Data Fields

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

Protected Member Functions

 checkAccessOrFail ()
 

Protected Attributes

ilTable2GUI $table
 
ilMyStaffAccess $access
 

Private Attributes

Container $dic
 
ilGlobalTemplateInterface $main_tpl
 

Detailed Description

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

Constructor & Destructor Documentation

◆ __construct()

ilMStListCompetencesSkillsGUI::__construct ( Container  $dic)

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

40 {
41 global $DIC;
42 $this->main_tpl = $DIC->ui()->mainTemplate();
43 $this->access = ilMyStaffAccess::getInstance();
44 $this->dic = $dic;
45 }
global $DIC
Definition: shib_login.php:26

References $DIC, $dic, and ILIAS\Repository\access().

+ Here is the call graph for this function:

Member Function Documentation

◆ applyFilter()

ilMStListCompetencesSkillsGUI::applyFilter ( )
final

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

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

116 : void
117 {
118 $this->dic->ctrl()->redirect($this);
119 }

◆ checkAccessOrFail()

ilMStListCompetencesSkillsGUI::checkAccessOrFail ( )
protected

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

47 : void
48 {
49 if ($this->access->hasCurrentUserAccessToCompetences()) {
50 return;
51 } else {
52 $this->main_tpl->setOnScreenMessage('failure', $this->dic->language()->txt("permission_denied"), true);
53 $this->dic->ctrl()->redirectByClass(ilDashboardGUI::class, "");
54 }
55 }

References ILIAS\Repository\access().

Referenced by listUsers().

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

◆ executeCommand()

ilMStListCompetencesSkillsGUI::executeCommand ( )
final

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

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

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

+ Here is the call graph for this function:

◆ getId()

ilMStListCompetencesSkillsGUI::getId ( )
final

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

109 : string
110 {
111 $this->table = new ilMStListCompetencesSkillsTableGUI($this, self::CMD_INDEX, $this->dic);
112
113 return $this->table->getId();
114 }

◆ index()

ilMStListCompetencesSkillsGUI::index ( )
final

Definition at line 78 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 ( )
final

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()->setTitleIcon(ilUtil::getImagePath('standard/icon_skmg.svg'));
90 $this->dic->ui()->mainTemplate()->setContent($this->table->getHTML());
91 }
static getImagePath(string $image_name, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory)

References checkAccessOrFail(), and ilUtil\getImagePath().

Referenced by index().

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

◆ resetFilter()

ilMStListCompetencesSkillsGUI::resetFilter ( )
final

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

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

References index().

+ Here is the call graph for this function:

Field Documentation

◆ $access

ilMyStaffAccess ilMStListCompetencesSkillsGUI::$access
protected

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

◆ $dic

Container ilMStListCompetencesSkillsGUI::$dic
private

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

Referenced by __construct().

◆ $main_tpl

ilGlobalTemplateInterface ilMStListCompetencesSkillsGUI::$main_tpl
private

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

◆ $table

ilTable2GUI ilMStListCompetencesSkillsGUI::$table
protected

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

◆ CMD_APPLY_FILTER

const string ilMStListCompetencesSkillsGUI::CMD_APPLY_FILTER = 'applyFilter'

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

Referenced by executeCommand().

◆ CMD_GET_ACTIONS

const string ilMStListCompetencesSkillsGUI::CMD_GET_ACTIONS = "getActions"

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

Referenced by executeCommand().

◆ CMD_INDEX

const string ilMStListCompetencesSkillsGUI::CMD_INDEX = 'index'

◆ CMD_RESET_FILTER

const string ilMStListCompetencesSkillsGUI::CMD_RESET_FILTER = 'resetFilter'

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

Referenced by executeCommand().


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