ILIAS  release_7 Revision v7.30-3-g800a261c036
ilMStListCompetencesGUI Class Reference

Class ilMStListCompetencesGUI. More...

+ Collaboration diagram for ilMStListCompetencesGUI:

Public Member Functions

 __construct (Container $dic=null)
 
 executeCommand ()
 
 index ()
 

Data Fields

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

Protected Member Functions

 checkAccessOrFail ()
 
 addSubTabs (string $subtab_active)
 

Protected Attributes

 $table
 
 $access
 

Private Attributes

 $dic
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilMStListCompetencesGUI::__construct ( Container  $dic = null)
Parameters
Container$dic

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

40 {
41 if (is_null($dic)) {
42 global $DIC;
43 $dic = $DIC;
44 }
45 $this->access = ilMyStaffAccess::getInstance();
46 $this->dic = $dic;
47 }
global $DIC
Definition: goto.php:24

References $DIC, and $dic.

Member Function Documentation

◆ addSubTabs()

ilMStListCompetencesGUI::addSubTabs ( string  $subtab_active)
protected
Parameters
string$subtab_active

Definition at line 94 of file class.ilMStListCompetencesGUI.php.

94 : void
95 {
96 $this->dic->language()->loadLanguageModule('skmg');
97 $this->dic->tabs()->addSubTab(
98 self::SUB_TAB_SKILLS,
99 $this->dic->language()->txt('skmg_selected_skills'),
100 $this->dic->ctrl()->getLinkTargetByClass([
101 self::class,
102 ilMStListCompetencesSkillsGUI::class
103 ])
104 );
105
106 $this->dic->tabs()->activateSubTab($subtab_active);
107 }

Referenced by executeCommand().

+ Here is the caller graph for this function:

◆ checkAccessOrFail()

ilMStListCompetencesGUI::checkAccessOrFail ( )
protected

Definition at line 53 of file class.ilMStListCompetencesGUI.php.

54 {
55 if ($this->access->hasCurrentUserAccessToCompetences()) {
56 return;
57 } else {
58 ilUtil::sendFailure($this->dic->language()->txt("permission_denied"), true);
59 $this->dic->ctrl()->redirectByClass(ilDashboardGUI::class, "");
60 }
61 }
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.

References ilUtil\sendFailure().

+ Here is the call graph for this function:

◆ executeCommand()

ilMStListCompetencesGUI::executeCommand ( )

Definition at line 67 of file class.ilMStListCompetencesGUI.php.

68 {
69 $cmd = $this->dic->ctrl()->getCmd();
70 $next_class = $this->dic->ctrl()->getNextClass();
71 switch ($next_class) {
72 case strtolower(ilMStListCompetencesSkillsGUI::class):
73 $this->addSubTabs(self::SUB_TAB_SKILLS);
74 $gui = new ilMStListCompetencesSkillsGUI($this->dic);
75 $this->dic->ctrl()->forwardCommand($gui);
76 break;
77 default:
78 switch ($cmd) {
79 case self::CMD_INDEX:
80 $this->$cmd();
81 break;
82 default:
83 $this->index();
84 break;
85 }
86 break;
87 }
88 }

References addSubTabs(), CMD_INDEX, and index().

+ Here is the call graph for this function:

◆ index()

ilMStListCompetencesGUI::index ( )

Definition at line 113 of file class.ilMStListCompetencesGUI.php.

114 {
115 $this->dic->ctrl()->redirectByClass(ilMStListCompetencesSkillsGUI::class);
116 }

Referenced by executeCommand().

+ Here is the caller graph for this function:

Field Documentation

◆ $access

ilMStListCompetencesGUI::$access
protected

Definition at line 29 of file class.ilMStListCompetencesGUI.php.

◆ $dic

ilMStListCompetencesGUI::$dic
private

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

Referenced by __construct().

◆ $table

ilMStListCompetencesGUI::$table
protected

Definition at line 25 of file class.ilMStListCompetencesGUI.php.

◆ CMD_APPLY_FILTER

const ilMStListCompetencesGUI::CMD_APPLY_FILTER = 'applyFilter'

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

◆ CMD_GET_ACTIONS

const ilMStListCompetencesGUI::CMD_GET_ACTIONS = "getActions"

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

◆ CMD_INDEX

const ilMStListCompetencesGUI::CMD_INDEX = 'index'

◆ CMD_RESET_FILTER

const ilMStListCompetencesGUI::CMD_RESET_FILTER = 'resetFilter'

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

◆ SUB_TAB_SKILLS

const ilMStListCompetencesGUI::SUB_TAB_SKILLS = 'skills'

Definition at line 21 of file class.ilMStListCompetencesGUI.php.


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