ILIAS  release_8 Revision v8.23
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 ()
 

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.

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

40  {
41  global $DIC;
42  $this->main_tpl = $DIC->ui()->mainTemplate();
43  $this->access = ilMyStaffAccess::getInstance();
44  $this->dic = $dic;
45  }
global $DIC
Definition: feed.php:28
+ Here is the call graph for this function:

Member Function Documentation

◆ applyFilter()

ilMStListCompetencesSkillsGUI::applyFilter ( )
final

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

References index().

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  }
+ 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.

References ILIAS\Repository\access().

Referenced by listUsers().

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  }
+ 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.

References index().

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) {
64  case self::CMD_RESET_FILTER:
65  case self::CMD_APPLY_FILTER:
66  case self::CMD_INDEX:
67  case self::CMD_GET_ACTIONS:
68  $this->$cmd();
69  break;
70  default:
71  $this->index();
72  break;
73  }
74  break;
75  }
76  }
+ 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().

78  : void
79  {
80  $this->listUsers();
81  }
+ 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.

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

Referenced by index().

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

References index().

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  }
+ 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 ilMStListCompetencesSkillsGUI::CMD_APPLY_FILTER = 'applyFilter'

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

◆ CMD_GET_ACTIONS

const ilMStListCompetencesSkillsGUI::CMD_GET_ACTIONS = "getActions"

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

◆ CMD_INDEX

const ilMStListCompetencesSkillsGUI::CMD_INDEX = 'index'

◆ CMD_RESET_FILTER

const ilMStListCompetencesSkillsGUI::CMD_RESET_FILTER = 'resetFilter'

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


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