ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
ilTestSkillEvaluationToolbarGUI Class Reference
+ Inheritance diagram for ilTestSkillEvaluationToolbarGUI:
+ Collaboration diagram for ilTestSkillEvaluationToolbarGUI:

Public Member Functions

 __construct (private ilCtrl $ctrl)
 
 setAvailableSkillProfiles (array $availableSkillProfiles)
 
 getAvailableSkillProfiles ()
 
 setNoSkillProfileOptionEnabled (bool $noSkillProfileOptionEnabled)
 
 isNoSkillProfileOptionEnabled ()
 
 setSelectedEvaluationMode (int $selectedEvaluationMode)
 
 getSelectedEvaluationMode ()
 
 build ()
 
- Public Member Functions inherited from ilToolbarGUI
 setFormAction (string $a_val, bool $a_multipart=false, string $a_target="")
 Set form action (if form action is set, toolbar is wrapped into form tags) More...
 
 getFormAction ()
 
 setLeadingImage (string $a_img, string $a_alt)
 
 setHidden (bool $a_val)
 
 getHidden ()
 
 setId (string $a_val)
 
 getId ()
 
 setPreventDoubleSubmission (bool $a_val)
 
 getPreventDoubleSubmission ()
 
 addButton (string $a_txt, string $a_cmd, string $a_target="", ?int $a_acc_key=null, string $a_additional_attrs='', string $a_id="", string $a_class='submit')
 
 addFormButton (string $a_txt, string $a_cmd, ?int $a_acc_key=null, bool $a_primary=false, ?string $a_class=null)
 
 addInputItem (ilToolbarItem $a_item, bool $a_output_label=false)
 
 addStickyItem ( $a_item, bool $a_output_label=false)
 Add a sticky item. More...
 
 addButtonInstance (ilButtonBase $a_button)
 Add button instance. More...
 
 addDropDown (string $a_txt, string $a_dd_html)
 
 addAdvancedSelectionList (ilAdvancedSelectionListGUI $adv)
 
 addSeparator ()
 
 addText (string $a_text)
 
 addSpacer (string $a_width=null)
 
 addComponent (\ILIAS\UI\Component\Component $a_comp)
 
 addLink (string $a_caption, string $a_url, bool $a_disabled=false)
 
 setOpenFormTag (bool $a_val)
 
 getOpenFormTag ()
 
 setCloseFormTag (bool $a_val)
 
 getCloseFormTag ()
 
 setFormName (string $a_val)
 
 getFormName ()
 
 getGroupedItems ()
 Get all groups (items separated by a separator) More...
 
 getItems ()
 
 setItems (array $items)
 

Private Member Functions

 buildEvaluationModeOptionsArray ()
 

Private Attributes

array $availableSkillProfiles
 
bool $noSkillProfileOptionEnabled
 
int $selectedEvaluationMode
 

Additional Inherited Members

- Data Fields inherited from ilToolbarGUI
array $items = array()
 
- 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
ilLanguage $lng
 
string $id = ''
 
string $form_action = ''
 
bool $hidden = false
 
array $lead_img
 
bool $open_form_tag = true
 
bool $close_form_tag = true
 
string $form_target = ""
 
string $form_name = ""
 
bool $prevent_double_submission = false
 
array $sticky_items = array()
 
bool $has_separator = false
 
ILIAS DI UIServices $ui
 
bool $multipart = false
 
- Static Protected Attributes inherited from ilToolbarGUI
static int $instances = 0
 

Detailed Description

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

Constructor & Destructor Documentation

◆ __construct()

ilTestSkillEvaluationToolbarGUI::__construct ( private ilCtrl  $ctrl)

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

References ILIAS\MetaData\Repository\Validation\Data\__construct().

35  {
37  }
__construct(VocabulariesInterface $vocabularies)
+ Here is the call graph for this function:

Member Function Documentation

◆ build()

ilTestSkillEvaluationToolbarGUI::build ( )

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

References ilToolbarGUI\addFormButton(), ilToolbarGUI\addInputItem(), buildEvaluationModeOptionsArray(), ilTestSkillEvaluationGUI\CMD_SHOW, ILIAS\Repository\ctrl(), getSelectedEvaluationMode(), ILIAS\Repository\lng(), ilToolbarGUI\setFormAction(), ilSelectInputGUI\setOptions(), and ilTestSkillEvaluationGUI\SKILL_PROFILE_PARAM.

69  : void
70  {
71  $this->setFormAction($this->ctrl->getFormActionByClass(ilTestSkillEvaluationGUI::class));
72 
73  $select = new ilSelectInputGUI($this->lng->txt('tst_analysis'), ilTestSkillEvaluationGUI::SKILL_PROFILE_PARAM);
75  $select->setValue($this->getSelectedEvaluationMode());
76  $this->addInputItem($select, true);
77 
78  $this->addFormButton($this->lng->txt('select'), ilTestSkillEvaluationGUI::CMD_SHOW);
79  }
This class represents a selection list property in a property form.
setFormAction(string $a_val, bool $a_multipart=false, string $a_target="")
Set form action (if form action is set, toolbar is wrapped into form tags)
setOptions(array $a_options)
addFormButton(string $a_txt, string $a_cmd, ?int $a_acc_key=null, bool $a_primary=false, ?string $a_class=null)
addInputItem(ilToolbarItem $a_item, bool $a_output_label=false)
+ Here is the call graph for this function:

◆ buildEvaluationModeOptionsArray()

ilTestSkillEvaluationToolbarGUI::buildEvaluationModeOptionsArray ( )
private

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

References getAvailableSkillProfiles(), isNoSkillProfileOptionEnabled(), and ILIAS\Repository\lng().

Referenced by build().

81  : array
82  {
83  $options = array();
84 
85  if ($this->isNoSkillProfileOptionEnabled()) {
86  $options[0] = $this->lng->txt('tst_all_test_competences');
87  ;
88  }
89 
90  foreach ($this->getAvailableSkillProfiles() as $skillProfileId => $skillProfileTitle) {
91  $options[$skillProfileId] = "{$this->lng->txt('tst_gap_analysis')}: {$skillProfileTitle}";
92  }
93 
94  return $options;
95  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getAvailableSkillProfiles()

ilTestSkillEvaluationToolbarGUI::getAvailableSkillProfiles ( )

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

References $availableSkillProfiles.

Referenced by buildEvaluationModeOptionsArray().

+ Here is the caller graph for this function:

◆ getSelectedEvaluationMode()

ilTestSkillEvaluationToolbarGUI::getSelectedEvaluationMode ( )

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

References $selectedEvaluationMode.

Referenced by build().

+ Here is the caller graph for this function:

◆ isNoSkillProfileOptionEnabled()

ilTestSkillEvaluationToolbarGUI::isNoSkillProfileOptionEnabled ( )

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

References $noSkillProfileOptionEnabled.

Referenced by buildEvaluationModeOptionsArray().

+ Here is the caller graph for this function:

◆ setAvailableSkillProfiles()

ilTestSkillEvaluationToolbarGUI::setAvailableSkillProfiles ( array  $availableSkillProfiles)

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

References $availableSkillProfiles.

39  : void
40  {
41  $this->availableSkillProfiles = $availableSkillProfiles;
42  }

◆ setNoSkillProfileOptionEnabled()

ilTestSkillEvaluationToolbarGUI::setNoSkillProfileOptionEnabled ( bool  $noSkillProfileOptionEnabled)

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

References $noSkillProfileOptionEnabled.

49  : void
50  {
51  $this->noSkillProfileOptionEnabled = $noSkillProfileOptionEnabled;
52  }

◆ setSelectedEvaluationMode()

ilTestSkillEvaluationToolbarGUI::setSelectedEvaluationMode ( int  $selectedEvaluationMode)

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

References $selectedEvaluationMode.

59  : void
60  {
61  $this->selectedEvaluationMode = $selectedEvaluationMode;
62  }

Field Documentation

◆ $availableSkillProfiles

array ilTestSkillEvaluationToolbarGUI::$availableSkillProfiles
private

◆ $noSkillProfileOptionEnabled

bool ilTestSkillEvaluationToolbarGUI::$noSkillProfileOptionEnabled
private

◆ $selectedEvaluationMode

int ilTestSkillEvaluationToolbarGUI::$selectedEvaluationMode
private

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