ILIAS  release_7 Revision v7.30-3-g800a261c036
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

 $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.

References $dic.

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

Member Function Documentation

◆ applyFilter()

ilMStListCompetencesSkillsGUI::applyFilter ( )

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

References index().

94  : void
95  {
96  $this->table = new ilMStListCompetencesSkillsTableGUI($this, self::CMD_APPLY_FILTER, $this->dic);
97  $this->table->writeFilterToSession();
98  $this->table->resetOffset();
99  $this->index();
100  }
+ Here is the call graph for this function:

◆ cancel()

ilMStListCompetencesSkillsGUI::cancel ( )

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

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

◆ checkAccessOrFail()

ilMStListCompetencesSkillsGUI::checkAccessOrFail ( )
protected

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

References ilUtil\sendFailure().

Referenced by listUsers().

44  : void
45  {
46  if ($this->access->hasCurrentUserAccessToCompetences()) {
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.
+ 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.

References index().

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) {
62  case self::CMD_RESET_FILTER:
63  case self::CMD_APPLY_FILTER:
64  case self::CMD_INDEX:
65  case self::CMD_GET_ACTIONS:
66  $this->$cmd();
67  break;
68  default:
69  $this->index();
70  break;
71  }
72  break;
73  }
74  }
+ Here is the call graph for this function:

◆ getId()

ilMStListCompetencesSkillsGUI::getId ( )
Returns
string

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

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

◆ index()

ilMStListCompetencesSkillsGUI::index ( )

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

References listUsers().

Referenced by applyFilter(), executeCommand(), and resetFilter().

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

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($img, $module_path="", $mode="output", $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 ( )

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

References index().

103  : void
104  {
105  $this->table = new ilMStListCompetencesSkillsTableGUI($this, self::CMD_RESET_FILTER, $this->dic);
106  $this->table->resetOffset();
107  $this->table->resetFilter();
108  $this->index();
109  }
+ 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.

◆ CMD_GET_ACTIONS

const ilMStListCompetencesSkillsGUI::CMD_GET_ACTIONS = "getActions"

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

◆ CMD_INDEX

const ilMStListCompetencesSkillsGUI::CMD_INDEX = 'index'

◆ CMD_RESET_FILTER

const ilMStListCompetencesSkillsGUI::CMD_RESET_FILTER = 'resetFilter'

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


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