ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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) More...
 
 getFormAction ()
 Get form action. More...
 
 setLeadingImage ($a_img, $a_alt)
 Set leading image. More...
 
 setHidden ($a_val)
 Set hidden. More...
 
 getHidden ()
 Get hidden. More...
 
 setId ($a_val)
 Set id. More...
 
 getId ()
 Get id. More...
 
 setPreventDoubleSubmission ($a_val)
 Set prevent double submission. More...
 
 getPreventDoubleSubmission ()
 Get prevent double submission. More...
 
 addButton ( $a_txt, $a_cmd, $a_target="", $a_acc_key="", $a_additional_attrs='', $a_id="", $a_class='submit')
 Add button to toolbar. More...
 
 addFormButton ($a_txt, $a_cmd, $a_acc_key="", $a_primary=false, $a_class=false)
 Add form button to toolbar. More...
 
 addInputItem (ilToolbarItem $a_item, $a_output_label=false)
 Add input item. More...
 
 addStickyItem ($a_item, $a_output_label=false)
 Add a sticky item. More...
 
 addButtonInstance (ilButtonBase $a_button)
 Add button instance. More...
 
 addDropDown ($a_txt, $a_dd_html)
 Add input item. More...
 
 addSeparator ()
 Add separator. More...
 
 addText ($a_text)
 Add text. More...
 
 addSpacer ($a_width=null)
 Add spacer. More...
 
 addComponent (\ILIAS\UI\Component\Component $a_comp)
 Add component. More...
 
 addLink ($a_caption, $a_url, $a_disabled=false)
 Add link. More...
 
 setOpenFormTag ($a_val)
 Set open form tag. More...
 
 getOpenFormTag ()
 Get open form tag. More...
 
 setCloseFormTag ($a_val)
 Set close form tag. More...
 
 getCloseFormTag ()
 Get close form tag. More...
 
 setFormName ($a_val)
 Set form name. More...
 
 getFormName ()
 Get form name. More...
 
 getGroupedItems ()
 Get all groups (items separated by a separator) More...
 
 getItems ()
 
 setItems ($items)
 

Data Fields

 $lng = null
 
- Data Fields inherited from ilToolbarGUI
 $items = array()
 

Private Attributes

 $resetPreviewCmd
 

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
 $lng
 
 $id = ''
 
 $form_action = ''
 
 $hidden
 
 $lead_img
 
 $open_form_tag = true
 
 $close_form_tag = true
 
 $form_target = ""
 
 $form_name = ""
 
 $prevent_double_submission = false
 
 $sticky_items = array()
 
 $has_separator = false
 
- Static Protected Attributes inherited from ilToolbarGUI
static $instances = 0
 

Detailed Description

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

Constructor & Destructor Documentation

◆ __construct()

ilAssQuestionPreviewToolbarGUI::__construct ( ilLanguage  $lng)

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

References $lng.

22  {
23  $this->lng = $lng;
24 
25  parent::__construct();
26  }

Member Function Documentation

◆ build()

ilAssQuestionPreviewToolbarGUI::build ( )

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

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

29  {
30  $this->addFormButton($this->lng->txt('qpl_reset_preview'), $this->getResetPreviewCmd(), '', true);
31  }
addFormButton($a_txt, $a_cmd, $a_acc_key="", $a_primary=false, $a_class=false)
Add form button to toolbar.
+ Here is the call graph for this function:

◆ getResetPreviewCmd()

ilAssQuestionPreviewToolbarGUI::getResetPreviewCmd ( )

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

References $resetPreviewCmd.

Referenced by build().

+ Here is the caller graph for this function:

◆ setResetPreviewCmd()

ilAssQuestionPreviewToolbarGUI::setResetPreviewCmd (   $resetPreviewCmd)

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

References $resetPreviewCmd.

34  {
35  $this->resetPreviewCmd = $resetPreviewCmd;
36  }

Field Documentation

◆ $lng

ilAssQuestionPreviewToolbarGUI::$lng = null

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

Referenced by __construct().

◆ $resetPreviewCmd

ilAssQuestionPreviewToolbarGUI::$resetPreviewCmd
private

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