ILIAS  Release_5_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
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.
 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.

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

ilTestSkillEvaluationToolbarGUI::__construct ( ilCtrl  $ctrl,
ilLanguage  $lng,
  $parentGUI,
  $parentCMD 
)

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

References $ctrl, $lng, $parentCMD, $parentGUI, and ilToolbarGUI\__construct().

{
$this->ctrl = $ctrl;
$this->lng = $lng;
$this->parentGUI = $parentGUI;
$this->parentCMD = $parentCMD;
}

+ Here is the call graph for this function:

Member Function Documentation

ilTestSkillEvaluationToolbarGUI::build ( )

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

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

{
$this->setFormAction($this->ctrl->getFormAction($this->parentGUI));
$select = new ilSelectInputGUI($this->lng->txt("tst_analysis"), self::SKILL_PROFILE_PARAM);
$select->setValue($this->getSelectedEvaluationMode());
$this->addInputItem($select, true);
$this->addFormButton($this->lng->txt("select"), $this->parentCMD);
}

+ Here is the call graph for this function:

ilTestSkillEvaluationToolbarGUI::buildEvaluationModeOptionsArray ( )
private

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

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

Referenced by build().

{
$options = array();
{
$options[0] = $this->lng->txt('tst_all_test_competences');;
}
foreach($this->getAvailableSkillProfiles() as $skillProfileId => $skillProfileTitle)
{
$options[$skillProfileId] = "{$this->lng->txt('tst_gap_analysis')}: {$skillProfileTitle}";
}
return $options;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static ilTestSkillEvaluationToolbarGUI::fetchSkillProfileParam (   $postData)
static

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

References SKILL_PROFILE_PARAM.

Referenced by ilTestSkillEvaluationGUI\showCmd().

{
if( isset($postData[self::SKILL_PROFILE_PARAM]) )
{
return (int)$postData[self::SKILL_PROFILE_PARAM];
}
return 0;
}

+ Here is the caller graph for this function:

ilTestSkillEvaluationToolbarGUI::getAvailableSkillProfiles ( )

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

References $availableSkillProfiles.

Referenced by buildEvaluationModeOptionsArray().

+ Here is the caller graph for this function:

ilTestSkillEvaluationToolbarGUI::getSelectedEvaluationMode ( )

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

References $selectedEvaluationMode.

Referenced by build().

+ Here is the caller graph for this function:

ilTestSkillEvaluationToolbarGUI::isNoSkillProfileOptionEnabled ( )

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

References $noSkillProfileOptionEnabled.

Referenced by buildEvaluationModeOptionsArray().

+ Here is the caller graph for this function:

ilTestSkillEvaluationToolbarGUI::setAvailableSkillProfiles (   $availableSkillProfiles)

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

References $availableSkillProfiles.

{
$this->availableSkillProfiles = $availableSkillProfiles;
}
ilTestSkillEvaluationToolbarGUI::setNoSkillProfileOptionEnabled (   $noSkillProfileOptionEnabled)

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

References $noSkillProfileOptionEnabled.

{
$this->noSkillProfileOptionEnabled = $noSkillProfileOptionEnabled;
}
ilTestSkillEvaluationToolbarGUI::setSelectedEvaluationMode (   $selectedEvaluationMode)

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

References $selectedEvaluationMode.

{
$this->selectedEvaluationMode = $selectedEvaluationMode;
}

Field Documentation

ilTestSkillEvaluationToolbarGUI::$availableSkillProfiles
private
ilTestSkillEvaluationToolbarGUI::$ctrl
private

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

Referenced by __construct().

ilTestSkillEvaluationToolbarGUI::$lng
private

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

Referenced by __construct().

ilTestSkillEvaluationToolbarGUI::$noSkillProfileOptionEnabled
private
ilTestSkillEvaluationToolbarGUI::$parentCMD
private

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

Referenced by __construct(), and build().

ilTestSkillEvaluationToolbarGUI::$parentGUI
private

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

Referenced by __construct().

ilTestSkillEvaluationToolbarGUI::$selectedEvaluationMode
private
const ilTestSkillEvaluationToolbarGUI::SKILL_PROFILE_PARAM = 'skill_profile'

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

Referenced by build(), and fetchSkillProfileParam().


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