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

Public Member Functions

 __construct (ilCtrlInterface $ctrl, ilLanguage $lng, ilTestRandomQuestionSetConfigGUI $questionSetConfigGUI, ilTestRandomQuestionSetConfig $questionSetConfig)
 
 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)
 

Data Fields

ilCtrlInterface $ctrl
 
ilTestRandomQuestionSetConfigGUI $questionSetConfigGUI
 
ilTestRandomQuestionSetConfig $questionSetConfig
 
- Data Fields inherited from ilToolbarGUI
array $items = array()
 

Private Member Functions

 buildSourcePoolSelectOptionsArray ($availablePools)
 
 populateNewQuestionSelectionRuleInputs ()
 

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
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

Constructor & Destructor Documentation

◆ __construct()

ilTestRandomQuestionSetSourcePoolDefinitionListToolbarGUI::__construct ( ilCtrlInterface  $ctrl,
ilLanguage  $lng,
ilTestRandomQuestionSetConfigGUI  $questionSetConfigGUI,
ilTestRandomQuestionSetConfig  $questionSetConfig 
)

Member Function Documentation

◆ build()

ilTestRandomQuestionSetSourcePoolDefinitionListToolbarGUI::build ( )

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

References ILIAS\Repository\ctrl(), populateNewQuestionSelectionRuleInputs(), and ilToolbarGUI\setFormAction().

43  : void
44  {
45  $this->setFormAction($this->ctrl->getFormAction($this->questionSetConfigGUI));
46 
47  if ($this->questionSetConfig->doesSelectableQuestionPoolsExist()) {
49  }
50  }
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)
+ Here is the call graph for this function:

◆ buildSourcePoolSelectOptionsArray()

ilTestRandomQuestionSetSourcePoolDefinitionListToolbarGUI::buildSourcePoolSelectOptionsArray (   $availablePools)
private

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

52  : array
53  {
54  $sourcePoolSelectOptionArray = [];
55 
56  foreach ($availablePools as $poolId => $poolData) {
57  $sourcePoolSelectOptionArray[$poolId] = $poolData['title'];
58  }
59 
60  return $sourcePoolSelectOptionArray;
61  }

◆ populateNewQuestionSelectionRuleInputs()

ilTestRandomQuestionSetSourcePoolDefinitionListToolbarGUI::populateNewQuestionSelectionRuleInputs ( )
private

Definition at line 63 of file class.ilTestRandomQuestionSetSourcePoolDefinitionListToolbarGUI.php.

References ilToolbarGUI\addFormButton(), ilTestRandomQuestionSetConfigGUI\CMD_SHOW_POOL_SELECTOR_EXPLORER, and ILIAS\Repository\lng().

Referenced by build().

63  : void
64  {
65  $this->addFormButton(
66  $this->lng->txt('tst_rnd_quest_set_tb_add_pool_btn'),
68  );
69  }
addFormButton(string $a_txt, string $a_cmd, ?int $a_acc_key=null, bool $a_primary=false, ?string $a_class=null)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Field Documentation

◆ $ctrl

ilCtrlInterface ilTestRandomQuestionSetSourcePoolDefinitionListToolbarGUI::$ctrl

◆ $questionSetConfig

ilTestRandomQuestionSetConfig ilTestRandomQuestionSetSourcePoolDefinitionListToolbarGUI::$questionSetConfig

◆ $questionSetConfigGUI

ilTestRandomQuestionSetConfigGUI ilTestRandomQuestionSetSourcePoolDefinitionListToolbarGUI::$questionSetConfigGUI

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