ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilTestSkillEvaluationToolbarGUI Class Reference
+ Inheritance diagram for ilTestSkillEvaluationToolbarGUI:
+ Collaboration diagram for ilTestSkillEvaluationToolbarGUI:

Public Member Functions

 __construct (ilCtrl $ctrl, ilLanguage $lng, $parentGUI, $parentCMD)
 
 setAvailableSkillProfiles ($availableSkillProfiles)
 
 getAvailableSkillProfiles ()
 
 setNoSkillProfileOptionEnabled ($noSkillProfileOptionEnabled)
 
 isNoSkillProfileOptionEnabled ()
 
 setSelectedEvaluationMode ($selectedEvaluationMode)
 
 getSelectedEvaluationMode ()
 
 build ()
 
- Public Member Functions inherited from ilToolbarGUI
 __construct ()
 
 setFormAction ($a_val, $a_multipart=false, $a_target="")
 Set form action (if form action is set, toolbar is wrapped into form tags) More...
 
 getFormAction ()
 Get form action. More...
 
 setLeadingImage ($a_img, $a_alt)
 Set leading image. More...
 
 setHidden ($a_val)
 Set hidden. More...
 
 getHidden ()
 Get hidden. More...
 
 setId ($a_val)
 Set id. More...
 
 getId ()
 Get id. More...
 
 setPreventDoubleSubmission ($a_val)
 Set prevent double submission. More...
 
 getPreventDoubleSubmission ()
 Get prevent double submission. More...
 
 addButton ( $a_txt, $a_cmd, $a_target="", $a_acc_key="", $a_additional_attrs='', $a_id="", $a_class='submit')
 Add button to toolbar. More...
 
 addFormButton ($a_txt, $a_cmd, $a_acc_key="", $a_primary=false, $a_class=false)
 Add form button to toolbar. More...
 
 addInputItem (ilToolbarItem $a_item, $a_output_label=false)
 Add input item. More...
 
 addStickyItem ($a_item, $a_output_label=false)
 Add a sticky item. More...
 
 addButtonInstance (ilButtonBase $a_button)
 Add button instance. More...
 
 addDropDown ($a_txt, $a_dd_html)
 Add input item. More...
 
 addSeparator ()
 Add separator. More...
 
 addText ($a_text)
 Add text. More...
 
 addSpacer ($a_width=null)
 Add spacer. More...
 
 addComponent (\ILIAS\UI\Component\Component $a_comp)
 Add component. More...
 
 addLink ($a_caption, $a_url, $a_disabled=false)
 Add link. More...
 
 setOpenFormTag ($a_val)
 Set open form tag. More...
 
 getOpenFormTag ()
 Get open form tag. More...
 
 setCloseFormTag ($a_val)
 Set close form tag. More...
 
 getCloseFormTag ()
 Get close form tag. More...
 
 setFormName ($a_val)
 Set form name. More...
 
 getFormName ()
 Get form name. More...
 
 getGroupedItems ()
 Get all groups (items separated by a separator) More...
 
 getItems ()
 
 setItems ($items)
 

Static Public Member Functions

static fetchSkillProfileParam ($postData)
 

Data Fields

const SKILL_PROFILE_PARAM = 'skill_profile'
 
- Data Fields inherited from ilToolbarGUI
 $items = array()
 

Private Member Functions

 buildEvaluationModeOptionsArray ()
 

Private Attributes

 $ctrl
 
 $parentGUI
 
 $parentCMD
 
 $availableSkillProfiles
 
 $noSkillProfileOptionEnabled
 
 $selectedEvaluationMode
 

Additional Inherited Members

- Protected Member Functions inherited from ilToolbarGUI
 applyAutoStickyToSingleElement ()
 If the toolbar consists of only one button, make it sticky Note: Atm this is only possible for buttons. More...
 
- Protected Attributes inherited from ilToolbarGUI
 $lng
 
 $id = ''
 
 $form_action = ''
 
 $hidden
 
 $lead_img
 
 $open_form_tag = true
 
 $close_form_tag = true
 
 $form_target = ""
 
 $form_name = ""
 
 $prevent_double_submission = false
 
 $sticky_items = array()
 
 $has_separator = false
 
- Static Protected Attributes inherited from ilToolbarGUI
static $instances = 0
 

Detailed Description

Definition at line 14 of file class.ilTestSkillEvaluationToolbarGUI.php.

Constructor & Destructor Documentation

◆ __construct()

ilTestSkillEvaluationToolbarGUI::__construct ( ilCtrl  $ctrl,
ilLanguage  $lng,
  $parentGUI,
  $parentCMD 
)

Member Function Documentation

◆ build()

ilTestSkillEvaluationToolbarGUI::build ( )

Definition at line 72 of file class.ilTestSkillEvaluationToolbarGUI.php.

73 {
74 $this->setFormAction($this->ctrl->getFormAction($this->parentGUI));
75
76 $select = new ilSelectInputGUI($this->lng->txt("tst_analysis"), self::SKILL_PROFILE_PARAM);
77 $select->setOptions($this->buildEvaluationModeOptionsArray());
78 $select->setValue($this->getSelectedEvaluationMode());
79 $this->addInputItem($select, true);
80
81 $this->addFormButton($this->lng->txt("select"), $this->parentCMD);
82 }
This class represents a selection list property in a property form.
setFormAction($a_val, $a_multipart=false, $a_target="")
Set form action (if form action is set, toolbar is wrapped into form tags)
addInputItem(ilToolbarItem $a_item, $a_output_label=false)
Add input item.
addFormButton($a_txt, $a_cmd, $a_acc_key="", $a_primary=false, $a_class=false)
Add form button to toolbar.

References ilToolbarGUI\addFormButton(), ilToolbarGUI\addInputItem(), buildEvaluationModeOptionsArray(), getSelectedEvaluationMode(), and ilToolbarGUI\setFormAction().

+ Here is the call graph for this function:

◆ buildEvaluationModeOptionsArray()

ilTestSkillEvaluationToolbarGUI::buildEvaluationModeOptionsArray ( )
private

Definition at line 84 of file class.ilTestSkillEvaluationToolbarGUI.php.

85 {
86 $options = array();
87
88 if ($this->isNoSkillProfileOptionEnabled()) {
89 $options[0] = $this->lng->txt('tst_all_test_competences');
90 ;
91 }
92
93 foreach ($this->getAvailableSkillProfiles() as $skillProfileId => $skillProfileTitle) {
94 $options[$skillProfileId] = "{$this->lng->txt('tst_gap_analysis')}: {$skillProfileTitle}";
95 }
96
97 return $options;
98 }

References PHPMailer\PHPMailer\$options, getAvailableSkillProfiles(), and isNoSkillProfileOptionEnabled().

Referenced by build().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ fetchSkillProfileParam()

static ilTestSkillEvaluationToolbarGUI::fetchSkillProfileParam (   $postData)
static

Definition at line 100 of file class.ilTestSkillEvaluationToolbarGUI.php.

101 {
102 if (isset($postData[self::SKILL_PROFILE_PARAM])) {
104 }
105
106 return 0;
107 }
if($session===NULL) $postData

References $postData, and SKILL_PROFILE_PARAM.

Referenced by ilTestSkillEvaluationGUI\showCmd().

+ Here is the caller graph for this function:

◆ getAvailableSkillProfiles()

ilTestSkillEvaluationToolbarGUI::getAvailableSkillProfiles ( )

Definition at line 47 of file class.ilTestSkillEvaluationToolbarGUI.php.

References $availableSkillProfiles.

Referenced by buildEvaluationModeOptionsArray().

+ Here is the caller graph for this function:

◆ getSelectedEvaluationMode()

ilTestSkillEvaluationToolbarGUI::getSelectedEvaluationMode ( )

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

References $selectedEvaluationMode.

Referenced by build().

+ Here is the caller graph for this function:

◆ isNoSkillProfileOptionEnabled()

ilTestSkillEvaluationToolbarGUI::isNoSkillProfileOptionEnabled ( )

Definition at line 57 of file class.ilTestSkillEvaluationToolbarGUI.php.

References $noSkillProfileOptionEnabled.

Referenced by buildEvaluationModeOptionsArray().

+ Here is the caller graph for this function:

◆ setAvailableSkillProfiles()

ilTestSkillEvaluationToolbarGUI::setAvailableSkillProfiles (   $availableSkillProfiles)

Definition at line 42 of file class.ilTestSkillEvaluationToolbarGUI.php.

43 {
44 $this->availableSkillProfiles = $availableSkillProfiles;
45 }

References $availableSkillProfiles.

◆ setNoSkillProfileOptionEnabled()

ilTestSkillEvaluationToolbarGUI::setNoSkillProfileOptionEnabled (   $noSkillProfileOptionEnabled)

Definition at line 52 of file class.ilTestSkillEvaluationToolbarGUI.php.

53 {
54 $this->noSkillProfileOptionEnabled = $noSkillProfileOptionEnabled;
55 }

References $noSkillProfileOptionEnabled.

◆ setSelectedEvaluationMode()

ilTestSkillEvaluationToolbarGUI::setSelectedEvaluationMode (   $selectedEvaluationMode)

Definition at line 62 of file class.ilTestSkillEvaluationToolbarGUI.php.

63 {
64 $this->selectedEvaluationMode = $selectedEvaluationMode;
65 }

References $selectedEvaluationMode.

Field Documentation

◆ $availableSkillProfiles

ilTestSkillEvaluationToolbarGUI::$availableSkillProfiles
private

◆ $ctrl

ilTestSkillEvaluationToolbarGUI::$ctrl
private

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

Referenced by __construct().

◆ $noSkillProfileOptionEnabled

ilTestSkillEvaluationToolbarGUI::$noSkillProfileOptionEnabled
private

◆ $parentCMD

ilTestSkillEvaluationToolbarGUI::$parentCMD
private

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

Referenced by __construct().

◆ $parentGUI

ilTestSkillEvaluationToolbarGUI::$parentGUI
private

Definition at line 23 of file class.ilTestSkillEvaluationToolbarGUI.php.

Referenced by __construct().

◆ $selectedEvaluationMode

ilTestSkillEvaluationToolbarGUI::$selectedEvaluationMode
private

◆ SKILL_PROFILE_PARAM

const ilTestSkillEvaluationToolbarGUI::SKILL_PROFILE_PARAM = 'skill_profile'

Definition at line 16 of file class.ilTestSkillEvaluationToolbarGUI.php.

Referenced by fetchSkillProfileParam().


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