ILIAS  release_5-0 Revision 5.0.0-1144-gc4397b1f870
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...
 
 addButtonInstance (ilButton $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...
 
 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...
 
 getHTML ()
 Get toolbar html. More...
 

Static Public Member Functions

static fetchSkillProfileParam ($postData)
 

Data Fields

const SKILL_PROFILE_PARAM = 'skill_profile'
 
- Data Fields inherited from ilToolbarGUI
 $items = array()
 
 $open_form_tag = true
 
 $close_form_tag = true
 
 $form_target = ""
 
 $form_name = ""
 

Private Member Functions

 buildEvaluationModeOptionsArray ()
 

Private Attributes

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

Additional Inherited Members

- Protected Attributes inherited from ilToolbarGUI
 $prevent_double_submission = false
 

Detailed Description

Definition at line 13 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 77 of file class.ilTestSkillEvaluationToolbarGUI.php.

References $parentCMD, ilToolbarGUI\addFormButton(), ilToolbarGUI\addInputItem(), buildEvaluationModeOptionsArray(), getSelectedEvaluationMode(), ilToolbarGUI\setFormAction(), and ilSelectInputGUI\setOptions().

78  {
79  $this->setFormAction($this->ctrl->getFormAction($this->parentGUI));
80 
81  $select = new ilSelectInputGUI($this->lng->txt("tst_analysis"), self::SKILL_PROFILE_PARAM);
83  $select->setValue($this->getSelectedEvaluationMode());
84  $this->addInputItem($select, true);
85 
86  $this->addFormButton($this->lng->txt("select"), $this->parentCMD);
87  }
This class represents a selection list property in a property form.
addInputItem(ilToolbarItem $a_item, $a_output_label=false)
Add input item.
setFormAction($a_val, $a_multipart=false, $a_target="")
Set form action (if form action is set, toolbar is wrapped into form tags.
addFormButton($a_txt, $a_cmd, $a_acc_key="", $a_primary=false, $a_class=false)
Add form button to toolbar.
setOptions($a_options)
Set Options.
+ Here is the call graph for this function:

◆ buildEvaluationModeOptionsArray()

ilTestSkillEvaluationToolbarGUI::buildEvaluationModeOptionsArray ( )
private

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

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

Referenced by build().

90  {
91  $options = array();
92 
93  if( $this->isNoSkillProfileOptionEnabled() )
94  {
95  $options[0] = $this->lng->txt('tst_all_test_competences');;
96  }
97 
98  foreach($this->getAvailableSkillProfiles() as $skillProfileId => $skillProfileTitle)
99  {
100  $options[$skillProfileId] = "{$this->lng->txt('tst_gap_analysis')}: {$skillProfileTitle}";
101  }
102 
103  return $options;
104  }
if(!is_array($argv)) $options
+ 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 106 of file class.ilTestSkillEvaluationToolbarGUI.php.

Referenced by ilTestSkillEvaluationGUI\showCmd().

107  {
108  if( isset($postData[self::SKILL_PROFILE_PARAM]) )
109  {
110  return (int)$postData[self::SKILL_PROFILE_PARAM];
111  }
112 
113  return 0;
114  }
+ Here is the caller graph for this function:

◆ getAvailableSkillProfiles()

ilTestSkillEvaluationToolbarGUI::getAvailableSkillProfiles ( )

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

References $availableSkillProfiles.

Referenced by buildEvaluationModeOptionsArray().

+ Here is the caller graph for this function:

◆ getSelectedEvaluationMode()

ilTestSkillEvaluationToolbarGUI::getSelectedEvaluationMode ( )

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

References $selectedEvaluationMode.

Referenced by build().

+ Here is the caller graph for this function:

◆ isNoSkillProfileOptionEnabled()

ilTestSkillEvaluationToolbarGUI::isNoSkillProfileOptionEnabled ( )

Definition at line 62 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 47 of file class.ilTestSkillEvaluationToolbarGUI.php.

References $availableSkillProfiles.

48  {
49  $this->availableSkillProfiles = $availableSkillProfiles;
50  }

◆ setNoSkillProfileOptionEnabled()

ilTestSkillEvaluationToolbarGUI::setNoSkillProfileOptionEnabled (   $noSkillProfileOptionEnabled)

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

References $noSkillProfileOptionEnabled.

58  {
59  $this->noSkillProfileOptionEnabled = $noSkillProfileOptionEnabled;
60  }

◆ setSelectedEvaluationMode()

ilTestSkillEvaluationToolbarGUI::setSelectedEvaluationMode (   $selectedEvaluationMode)

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

References $selectedEvaluationMode.

68  {
69  $this->selectedEvaluationMode = $selectedEvaluationMode;
70  }

Field Documentation

◆ $availableSkillProfiles

ilTestSkillEvaluationToolbarGUI::$availableSkillProfiles
private

◆ $ctrl

ilTestSkillEvaluationToolbarGUI::$ctrl
private

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

Referenced by __construct().

◆ $lng

ilTestSkillEvaluationToolbarGUI::$lng
private

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

Referenced by __construct().

◆ $noSkillProfileOptionEnabled

ilTestSkillEvaluationToolbarGUI::$noSkillProfileOptionEnabled
private

◆ $parentCMD

ilTestSkillEvaluationToolbarGUI::$parentCMD
private

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

Referenced by __construct(), and build().

◆ $parentGUI

ilTestSkillEvaluationToolbarGUI::$parentGUI
private

Definition at line 27 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 15 of file class.ilTestSkillEvaluationToolbarGUI.php.


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