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

Public Member Functions

 __construct (ilLanguage $lng)
 build ()
 setResetPreviewCmd ($resetPreviewCmd)
 getResetPreviewCmd ()
- 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

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

Private Attributes

 $resetPreviewCmd

Additional Inherited Members

- Protected Attributes inherited from ilToolbarGUI
 $prevent_double_submission = false

Detailed Description

Definition at line 12 of file class.ilAssQuestionPreviewToolbarGUI.php.

Constructor & Destructor Documentation

ilAssQuestionPreviewToolbarGUI::__construct ( ilLanguage  $lng)

Definition at line 21 of file class.ilAssQuestionPreviewToolbarGUI.php.

References $lng, and ilToolbarGUI\__construct().

{
$this->lng = $lng;
}

+ Here is the call graph for this function:

Member Function Documentation

ilAssQuestionPreviewToolbarGUI::build ( )

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

References ilToolbarGUI\addFormButton(), and getResetPreviewCmd().

{
$this->addFormButton($this->lng->txt('qpl_reset_preview'), $this->getResetPreviewCmd(), '', true);
}

+ Here is the call graph for this function:

ilAssQuestionPreviewToolbarGUI::getResetPreviewCmd ( )

Definition at line 38 of file class.ilAssQuestionPreviewToolbarGUI.php.

References $resetPreviewCmd.

Referenced by build().

+ Here is the caller graph for this function:

ilAssQuestionPreviewToolbarGUI::setResetPreviewCmd (   $resetPreviewCmd)

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

References $resetPreviewCmd.

{
$this->resetPreviewCmd = $resetPreviewCmd;
}

Field Documentation

ilAssQuestionPreviewToolbarGUI::$lng = null

Definition at line 17 of file class.ilAssQuestionPreviewToolbarGUI.php.

Referenced by __construct().

ilAssQuestionPreviewToolbarGUI::$resetPreviewCmd
private

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