ILIAS  trunk Revision v11.0_alpha-1769-g99a433fe2dc
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilMStListCompetencesGUI Class Reference

Class ilMStListCompetencesGUI. More...

+ Collaboration diagram for ilMStListCompetencesGUI:

Public Member Functions

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

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'
 
const string SUB_TAB_SKILLS = 'skills'
 

Protected Member Functions

 checkAccessOrFail ()
 
 addSubTabs (string $subtab_active)
 

Protected Attributes

ilTable2GUI $table
 
ilMyStaffAccess $access
 

Private Attributes

Container $dic
 
ilGlobalTemplateInterface $main_tpl
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilMStListCompetencesGUI::__construct ( Container  $dic)

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

References $dic, ILIAS\Repository\access(), and ILIAS\DI\Container\ui().

42  {
43  $this->main_tpl = $dic->ui()->mainTemplate();
44  $this->access = ilMyStaffAccess::getInstance();
45  $this->dic = $dic;
46  }
ui()
Get the interface to get services from UI framework.
Definition: Container.php:127
+ Here is the call graph for this function:

Member Function Documentation

◆ addSubTabs()

ilMStListCompetencesGUI::addSubTabs ( string  $subtab_active)
protected

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

Referenced by executeCommand().

81  : void
82  {
83  $this->dic->language()->loadLanguageModule('skmg');
84  $this->dic->tabs()->addSubTab(
85  self::SUB_TAB_SKILLS,
86  $this->dic->language()->txt('skmg_selected_skills'),
87  $this->dic->ctrl()->getLinkTargetByClass([
88  self::class,
89  ilMStListCompetencesSkillsGUI::class
90  ])
91  );
92 
93  $this->dic->tabs()->activateSubTab($subtab_active);
94  }
+ Here is the caller graph for this function:

◆ checkAccessOrFail()

ilMStListCompetencesGUI::checkAccessOrFail ( )
protected

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

References ILIAS\Repository\access().

48  : void
49  {
50  if ($this->access->hasCurrentUserAccessToCompetences()) {
51  return;
52  } else {
53  $this->main_tpl->setOnScreenMessage('failure', $this->dic->language()->txt("permission_denied"), true);
54  $this->dic->ctrl()->redirectByClass(ilDashboardGUI::class, "");
55  }
56  }
+ Here is the call graph for this function:

◆ executeCommand()

ilMStListCompetencesGUI::executeCommand ( )
final

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

References addSubTabs(), and index().

58  : void
59  {
60  $cmd = $this->dic->ctrl()->getCmd();
61  $next_class = $this->dic->ctrl()->getNextClass();
62  switch ($next_class) {
63  case strtolower(ilMStListCompetencesSkillsGUI::class):
64  $this->addSubTabs(self::SUB_TAB_SKILLS);
65  $gui = new ilMStListCompetencesSkillsGUI($this->dic);
66  $this->dic->ctrl()->forwardCommand($gui);
67  break;
68  default:
69  switch ($cmd) {
70  case self::CMD_INDEX:
71  $this->$cmd();
72  break;
73  default:
74  $this->index();
75  break;
76  }
77  break;
78  }
79  }
+ Here is the call graph for this function:

◆ index()

ilMStListCompetencesGUI::index ( )
final

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

Referenced by executeCommand().

96  : void
97  {
98  $this->dic->ctrl()->redirectByClass(ilMStListCompetencesSkillsGUI::class);
99  }
+ Here is the caller graph for this function:

Field Documentation

◆ $access

ilMyStaffAccess ilMStListCompetencesGUI::$access
protected

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

◆ $dic

Container ilMStListCompetencesGUI::$dic
private

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

Referenced by __construct().

◆ $main_tpl

ilGlobalTemplateInterface ilMStListCompetencesGUI::$main_tpl
private

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

◆ $table

ilTable2GUI ilMStListCompetencesGUI::$table
protected

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

◆ CMD_APPLY_FILTER

const string ilMStListCompetencesGUI::CMD_APPLY_FILTER = 'applyFilter'

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

◆ CMD_GET_ACTIONS

const string ilMStListCompetencesGUI::CMD_GET_ACTIONS = "getActions"

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

◆ CMD_INDEX

const string ilMStListCompetencesGUI::CMD_INDEX = 'index'

◆ CMD_RESET_FILTER

const string ilMStListCompetencesGUI::CMD_RESET_FILTER = 'resetFilter'

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

◆ SUB_TAB_SKILLS

const string ilMStListCompetencesGUI::SUB_TAB_SKILLS = 'skills'

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


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