ILIAS  trunk Revision v11.0_alpha-1866-gfa368f7776e
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilSurveySkillDeterminationGUI Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ Collaboration diagram for ilSurveySkillDeterminationGUI:

Public Member Functions

 __construct (ilObjSurvey $a_survey)
 
 executeCommand ()
 
 listSkillChanges ()
 

Protected Attributes

ilGlobalTemplateInterface $tpl
 
ilObjSurvey $survey
 
ilCtrl $ctrl
 
ilToolbarGUI $toolbar
 
ilLanguage $lng
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Survey skill determination GUI class

Author
Alexander Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de ilSurveySkillDeterminationGUI:

Definition at line 24 of file class.ilSurveySkillDeterminationGUI.php.

Constructor & Destructor Documentation

◆ __construct()

ilSurveySkillDeterminationGUI::__construct ( ilObjSurvey  $a_survey)

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

References $DIC, ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), and ILIAS\Repository\toolbar().

33  {
34  global $DIC;
35 
36  $this->ctrl = $DIC->ctrl();
37  $this->tpl = $DIC->ui()->mainTemplate();
38  $this->toolbar = $DIC->toolbar();
39  $this->lng = $DIC->language();
40  $this->survey = $a_survey;
41  }
global $DIC
Definition: shib_login.php:22
+ Here is the call graph for this function:

Member Function Documentation

◆ executeCommand()

ilSurveySkillDeterminationGUI::executeCommand ( )

Definition at line 43 of file class.ilSurveySkillDeterminationGUI.php.

References $ctrl, and ilCtrl\getCmd().

43  : void
44  {
45  $ilCtrl = $this->ctrl;
46 
47  $cmd = $ilCtrl->getCmd("listSkillChanges");
48 
49  if ($cmd === "listSkillChanges") {
50  $this->$cmd();
51  }
52  }
getCmd(?string $fallback_command=null)
+ Here is the call graph for this function:

◆ listSkillChanges()

ilSurveySkillDeterminationGUI::listSkillChanges ( )

Definition at line 54 of file class.ilSurveySkillDeterminationGUI.php.

References $tpl, and ILIAS\UICore\GlobalTemplate\setContent().

54  : void
55  {
56  $tpl = $this->tpl;
57 
58  if ($this->survey->get360Mode()) {
59  $apps = $this->survey->getAppraiseesData();
60  } else { // Mode self evaluation, No Appraisee and Rater involved.
61  $apps = $this->survey->getSurveyParticipants();
62  }
63  $ctpl = new ilTemplate("tpl.svy_skill_list_changes.html", true, true, "components/ILIAS/Survey");
64  foreach ($apps as $app) {
65  $changes_table = new ilSurveySkillChangesTableGUI(
66  $this,
67  "listSkillChanges",
68  $this->survey,
69  $app
70  );
71 
72  $ctpl->setCurrentBlock("appraisee");
73  $ctpl->setVariable("LASTNAME", $app["lastname"]);
74  $ctpl->setVariable("FIRSTNAME", $app["firstname"]);
75 
76  $ctpl->setVariable("CHANGES_TABLE", $changes_table->getHTML());
77 
78  $ctpl->parseCurrentBlock();
79  }
80 
81  $tpl->setContent($ctpl->get());
82  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
setContent(string $a_html)
Sets content for standard template.
+ Here is the call graph for this function:

Field Documentation

◆ $ctrl

ilCtrl ilSurveySkillDeterminationGUI::$ctrl
protected

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

Referenced by executeCommand().

◆ $lng

ilLanguage ilSurveySkillDeterminationGUI::$lng
protected

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

◆ $survey

ilObjSurvey ilSurveySkillDeterminationGUI::$survey
protected

Definition at line 27 of file class.ilSurveySkillDeterminationGUI.php.

◆ $toolbar

ilToolbarGUI ilSurveySkillDeterminationGUI::$toolbar
protected

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

◆ $tpl

ilGlobalTemplateInterface ilSurveySkillDeterminationGUI::$tpl
protected

Definition at line 26 of file class.ilSurveySkillDeterminationGUI.php.

Referenced by listSkillChanges().


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