ILIAS  Release_5_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilTestRandomQuestionSetSourcePoolDefinitionListToolbarGUI Class Reference
+ Inheritance diagram for ilTestRandomQuestionSetSourcePoolDefinitionListToolbarGUI:
+ Collaboration diagram for ilTestRandomQuestionSetSourcePoolDefinitionListToolbarGUI:

Public Member Functions

 __construct (ilCtrl $ctrl, ilLanguage $lng, ilTestRandomQuestionSetConfigGUI $questionSetConfigGUI, ilTestRandomQuestionSetConfig $questionSetConfig)
 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.
 getFormAction ()
 Get form action.
 setLeadingImage ($a_img, $a_alt)
 Set leading image.
 setHidden ($a_val)
 Set hidden.
 getHidden ()
 Get hidden.
 setId ($a_val)
 Set id.
 getId ()
 Get id.
 setPreventDoubleSubmission ($a_val)
 Set prevent double submission.
 getPreventDoubleSubmission ()
 Get prevent double submission.
 addButton ($a_txt, $a_cmd, $a_target="", $a_acc_key="", $a_additional_attrs= '', $a_id="", $a_class= 'submit')
 Add button to toolbar.
 addFormButton ($a_txt, $a_cmd, $a_acc_key="", $a_primary=false, $a_class=false)
 Add form button to toolbar.
 addInputItem (ilToolbarItem $a_item, $a_output_label=false)
 Add input item.
 addButtonInstance (ilButton $a_button)
 Add button instance.
 addDropDown ($a_txt, $a_dd_html)
 Add input item.
 addSeparator ()
 Add separator.
 addText ($a_text)
 Add text.
 addSpacer ($a_width=null)
 Add spacer.
 addLink ($a_caption, $a_url, $a_disabled=false)
 Add link.
 setOpenFormTag ($a_val)
 Set open form tag.
 getOpenFormTag ()
 Get open form tag.
 setCloseFormTag ($a_val)
 Set close form tag.
 getCloseFormTag ()
 Get close form tag.
 setFormName ($a_val)
 Set form name.
 getFormName ()
 Get form name.
 getHTML ()
 Get toolbar html.

Data Fields

 $ctrl = null
 $lng = null
 $questionSetConfigGUI = null
 $questionSetConfig = null
- Data Fields inherited from ilToolbarGUI
 $items = array()
 $open_form_tag = true
 $close_form_tag = true
 $form_target = ""
 $form_name = ""

Private Member Functions

 buildSourcePoolSelectOptionsArray ($availablePools)
 populateNewQuestionSelectionRuleInputs ()

Additional Inherited Members

- Protected Attributes inherited from ilToolbarGUI
 $prevent_double_submission = false

Detailed Description

Constructor & Destructor Documentation

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

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

References $ctrl, $lng, $questionSetConfig, $questionSetConfigGUI, and ilToolbarGUI\__construct().

{
$this->ctrl = $ctrl;
$this->lng = $lng;
$this->questionSetConfigGUI = $questionSetConfigGUI;
$this->questionSetConfig = $questionSetConfig;
}

+ Here is the call graph for this function:

Member Function Documentation

ilTestRandomQuestionSetSourcePoolDefinitionListToolbarGUI::build ( )

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

References populateNewQuestionSelectionRuleInputs(), and ilToolbarGUI\setFormAction().

{
$this->setFormAction( $this->ctrl->getFormAction($this->questionSetConfigGUI) );
if( $this->questionSetConfig->doesSelectableQuestionPoolsExist() )
{
}
}

+ Here is the call graph for this function:

ilTestRandomQuestionSetSourcePoolDefinitionListToolbarGUI::buildSourcePoolSelectOptionsArray (   $availablePools)
private

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

Referenced by populateNewQuestionSelectionRuleInputs().

{
$sourcePoolSelectOptionArray = array();
foreach($availablePools as $poolId => $poolData)
{
$sourcePoolSelectOptionArray[$poolId] = $poolData['title'];
}
return $sourcePoolSelectOptionArray;
}

+ Here is the caller graph for this function:

ilTestRandomQuestionSetSourcePoolDefinitionListToolbarGUI::populateNewQuestionSelectionRuleInputs ( )
private

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

References ilToolbarGUI\addFormButton(), ilToolbarGUI\addInputItem(), buildSourcePoolSelectOptionsArray(), and ilTestRandomQuestionSetConfigGUI\CMD_SHOW_CREATE_SRC_POOL_DEF_FORM.

Referenced by build().

{
$availablePools = $this->questionSetConfig->getSelectableQuestionPools();
require_once 'Services/Form/classes/class.ilSelectInputGUI.php';
$poolSelection = new ilSelectInputGUI(null, 'quest_pool_id');
$poolSelection->setOptions($this->buildSourcePoolSelectOptionsArray($availablePools));
$this->addInputItem($poolSelection, true);
$this->addFormButton(
$this->lng->txt('tst_rnd_quest_set_tb_add_pool_btn'),
);
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Field Documentation

ilTestRandomQuestionSetSourcePoolDefinitionListToolbarGUI::$ctrl = null
ilTestRandomQuestionSetSourcePoolDefinitionListToolbarGUI::$lng = null
ilTestRandomQuestionSetSourcePoolDefinitionListToolbarGUI::$questionSetConfig = null
ilTestRandomQuestionSetSourcePoolDefinitionListToolbarGUI::$questionSetConfigGUI = null

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