ILIAS  trunk Revision v11.0_alpha-1761-g6dbbfa7b760
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilTestSkillEvaluationToolbarGUI Class Reference
+ Inheritance diagram for ilTestSkillEvaluationToolbarGUI:
+ Collaboration diagram for ilTestSkillEvaluationToolbarGUI:

Public Member Functions

 __construct (private ilCtrlInterface $ctrl)
 
 setAvailableSkillProfiles (array $availableSkillProfiles)
 
 setNoSkillProfileOptionEnabled (bool $noSkillProfileOptionEnabled)
 
 setSelectedEvaluationMode (int $selectedEvaluationMode)
 
 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 $available_skill_profiles
 
bool $no_skill_profile_option_enabled
 
int $selected_evaluation_mode
 

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 ilCtrlInterface  $ctrl)

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

References ILIAS\GlobalScreen\Provider\__construct().

35  {
37  }
__construct(Container $dic, ilPlugin $plugin)
+ Here is the call graph for this function:

Member Function Documentation

◆ build()

ilTestSkillEvaluationToolbarGUI::build ( )

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

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

54  : void
55  {
56  $this->setFormAction($this->ctrl->getFormActionByClass(ilTestSkillEvaluationGUI::class));
57 
58  $select = new ilSelectInputGUI($this->lng->txt('tst_analysis'), ilTestSkillEvaluationGUI::SKILL_PROFILE_PARAM);
60  $select->setValue($this->selected_evaluation_mode);
61  $this->addInputItem($select, true);
62 
63  $this->addFormButton($this->lng->txt('select'), ilTestSkillEvaluationGUI::CMD_SHOW);
64  }
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 66 of file class.ilTestSkillEvaluationToolbarGUI.php.

References ILIAS\Repository\lng().

Referenced by build().

66  : array
67  {
68  $options = [];
69 
70  if ($this->no_skill_profile_option_enabled) {
71  $options[0] = $this->lng->txt('tst_all_test_competences');
72  ;
73  }
74 
75  foreach ($this->available_skill_profiles as $skillProfileId => $skillProfileTitle) {
76  $options[$skillProfileId] = "{$this->lng->txt('tst_gap_analysis')}: {$skillProfileTitle}";
77  }
78 
79  return $options;
80  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setAvailableSkillProfiles()

ilTestSkillEvaluationToolbarGUI::setAvailableSkillProfiles ( array  $availableSkillProfiles)

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

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

◆ setNoSkillProfileOptionEnabled()

ilTestSkillEvaluationToolbarGUI::setNoSkillProfileOptionEnabled ( bool  $noSkillProfileOptionEnabled)

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

44  : void
45  {
46  $this->no_skill_profile_option_enabled = $noSkillProfileOptionEnabled;
47  }

◆ setSelectedEvaluationMode()

ilTestSkillEvaluationToolbarGUI::setSelectedEvaluationMode ( int  $selectedEvaluationMode)

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

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

Field Documentation

◆ $available_skill_profiles

array ilTestSkillEvaluationToolbarGUI::$available_skill_profiles
private

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

◆ $no_skill_profile_option_enabled

bool ilTestSkillEvaluationToolbarGUI::$no_skill_profile_option_enabled
private

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

◆ $selected_evaluation_mode

int ilTestSkillEvaluationToolbarGUI::$selected_evaluation_mode
private

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


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