|
ILIAS
release_5-0 Revision 5.0.0-1144-gc4397b1f870
|
Toolbar. More...
Inheritance diagram for ilToolbarGUI:
Collaboration diagram for ilToolbarGUI:Public Member Functions | |
| __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... | |
| addButtonInstance (ilButton $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... | |
| 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... | |
| getHTML () | |
| Get toolbar html. More... | |
Data Fields | |
| $items = array() | |
| $open_form_tag = true | |
| $close_form_tag = true | |
| $form_target = "" | |
| $form_name = "" | |
Protected Attributes | |
| $prevent_double_submission = false | |
Toolbar.
The toolbar currently only supports a list of buttons as links.
A default toolbar object is available in the $ilToolbar global object.
Definition at line 13 of file class.ilToolbarGUI.php.
| ilToolbarGUI::__construct | ( | ) |
Definition at line 23 of file class.ilToolbarGUI.php.
| ilToolbarGUI::addButton | ( | $a_txt, | |
| $a_cmd, | |||
$a_target = "", |
|||
$a_acc_key = "", |
|||
$a_additional_attrs = '', |
|||
$a_id = "", |
|||
$a_class = 'submit' |
|||
| ) |
Add button to toolbar.
| string | text |
| string | link href / submit command |
| string | frame target |
| string | access key |
Definition at line 128 of file class.ilToolbarGUI.php.
Referenced by ilTestResultsToolbarGUI\build(), ilBookingObjectGUI\render(), and ilBookingScheduleGUI\render().
Here is the caller graph for this function:| ilToolbarGUI::addButtonInstance | ( | ilButton | $a_button | ) |
Add button instance.
| ilButton | $a_button |
Definition at line 166 of file class.ilToolbarGUI.php.
Referenced by ilTestResultsToolbarGUI\build().
Here is the caller graph for this function:| ilToolbarGUI::addDropDown | ( | $a_txt, | |
| $a_dd_html | |||
| ) |
Add input item.
Definition at line 175 of file class.ilToolbarGUI.php.
| ilToolbarGUI::addFormButton | ( | $a_txt, | |
| $a_cmd, | |||
$a_acc_key = "", |
|||
$a_primary = false, |
|||
$a_class = false |
|||
| ) |
Add form button to toolbar.
deprecated use addButtonInstance() instead!
| string | text |
| string | link href / submit command |
| string | access key |
| bool | primary action |
| string | css class |
Definition at line 147 of file class.ilToolbarGUI.php.
Referenced by ilDidacticTemplateGUI\appendToolbarSwitch(), ilTestSkillEvaluationToolbarGUI\build(), ilAssQuestionPreviewToolbarGUI\build(), and ilTestRandomQuestionSetSourcePoolDefinitionListToolbarGUI\populateNewQuestionSelectionRuleInputs().
Here is the caller graph for this function:| ilToolbarGUI::addInputItem | ( | ilToolbarItem | $a_item, |
$a_output_label = false |
|||
| ) |
Add input item.
Definition at line 156 of file class.ilToolbarGUI.php.
Referenced by ilDidacticTemplateGUI\appendToolbarSwitch(), ilTestResultsToolbarGUI\build(), ilTestSkillEvaluationToolbarGUI\build(), and ilTestRandomQuestionSetSourcePoolDefinitionListToolbarGUI\populateNewQuestionSelectionRuleInputs().
Here is the caller graph for this function:| ilToolbarGUI::addLink | ( | $a_caption, | |
| $a_url, | |||
$a_disabled = false |
|||
| ) |
Add link.
| string | $a_caption | |
| string | $a_url | |
| boolean | $a_disabled |
Definition at line 213 of file class.ilToolbarGUI.php.
| ilToolbarGUI::addSeparator | ( | ) |
Add separator.
Definition at line 184 of file class.ilToolbarGUI.php.
Referenced by ilTestResultsToolbarGUI\build().
Here is the caller graph for this function:| ilToolbarGUI::addSpacer | ( | $a_width = null | ) |
Add spacer.
Definition at line 200 of file class.ilToolbarGUI.php.
| ilToolbarGUI::addText | ( | $a_text | ) |
Add text.
Definition at line 192 of file class.ilToolbarGUI.php.
Referenced by ilDidacticTemplateGUI\appendToolbarSwitch().
Here is the caller graph for this function:| ilToolbarGUI::getCloseFormTag | ( | ) |
Get close form tag.
Definition at line 253 of file class.ilToolbarGUI.php.
References $close_form_tag.
Referenced by getHTML().
Here is the caller graph for this function:| ilToolbarGUI::getFormAction | ( | ) |
Get form action.
Definition at line 45 of file class.ilToolbarGUI.php.
Referenced by getHTML().
Here is the caller graph for this function:| ilToolbarGUI::getFormName | ( | ) |
Get form name.
Definition at line 273 of file class.ilToolbarGUI.php.
References $form_name.
Referenced by getHTML().
Here is the caller graph for this function:| ilToolbarGUI::getHidden | ( | ) |
Get hidden.
Definition at line 73 of file class.ilToolbarGUI.php.
Referenced by getHTML().
Here is the caller graph for this function:| ilToolbarGUI::getHTML | ( | ) |
Get toolbar html.
Definition at line 281 of file class.ilToolbarGUI.php.
References $lng, $tpl, ilAccessKeyGUI\getAttribute(), getCloseFormTag(), getFormAction(), getFormName(), getHidden(), getId(), getOpenFormTag(), and getPreventDoubleSubmission().
Here is the call graph for this function:| ilToolbarGUI::getId | ( | ) |
Get id.
Definition at line 93 of file class.ilToolbarGUI.php.
Referenced by getHTML().
Here is the caller graph for this function:| ilToolbarGUI::getOpenFormTag | ( | ) |
Get open form tag.
Definition at line 233 of file class.ilToolbarGUI.php.
References $open_form_tag.
Referenced by getHTML().
Here is the caller graph for this function:| ilToolbarGUI::getPreventDoubleSubmission | ( | ) |
Get prevent double submission.
Definition at line 113 of file class.ilToolbarGUI.php.
References $prevent_double_submission.
Referenced by getHTML().
Here is the caller graph for this function:| ilToolbarGUI::setCloseFormTag | ( | $a_val | ) |
Set close form tag.
| boolean | close form tag |
Definition at line 243 of file class.ilToolbarGUI.php.
| ilToolbarGUI::setFormAction | ( | $a_val, | |
$a_multipart = false, |
|||
$a_target = "" |
|||
| ) |
Set form action (if form action is set, toolbar is wrapped into form tags.
| string | form action |
Definition at line 33 of file class.ilToolbarGUI.php.
Referenced by ilTestRandomQuestionSetSourcePoolDefinitionListToolbarGUI\build(), and ilTestSkillEvaluationToolbarGUI\build().
Here is the caller graph for this function:| ilToolbarGUI::setFormName | ( | $a_val | ) |
Set form name.
| string | form name |
Definition at line 263 of file class.ilToolbarGUI.php.
| ilToolbarGUI::setHidden | ( | $a_val | ) |
Set hidden.
| boolean | $a_val | hidden |
Definition at line 63 of file class.ilToolbarGUI.php.
| ilToolbarGUI::setId | ( | $a_val | ) |
Set id.
| string | $a_val | id |
Definition at line 83 of file class.ilToolbarGUI.php.
Referenced by ilTestResultsToolbarGUI\build().
Here is the caller graph for this function:| ilToolbarGUI::setLeadingImage | ( | $a_img, | |
| $a_alt | |||
| ) |
Set leading image.
Definition at line 53 of file class.ilToolbarGUI.php.
| ilToolbarGUI::setOpenFormTag | ( | $a_val | ) |
Set open form tag.
| boolean | open form tag |
Definition at line 223 of file class.ilToolbarGUI.php.
| ilToolbarGUI::setPreventDoubleSubmission | ( | $a_val | ) |
Set prevent double submission.
| bool | $a_val | prevent double submission |
Definition at line 103 of file class.ilToolbarGUI.php.
| ilToolbarGUI::$close_form_tag = true |
Definition at line 17 of file class.ilToolbarGUI.php.
Referenced by getCloseFormTag().
| ilToolbarGUI::$form_name = "" |
Definition at line 19 of file class.ilToolbarGUI.php.
Referenced by getFormName().
| ilToolbarGUI::$form_target = "" |
Definition at line 18 of file class.ilToolbarGUI.php.
| ilToolbarGUI::$items = array() |
Definition at line 15 of file class.ilToolbarGUI.php.
| ilToolbarGUI::$open_form_tag = true |
Definition at line 16 of file class.ilToolbarGUI.php.
Referenced by getOpenFormTag().
|
protected |
Definition at line 21 of file class.ilToolbarGUI.php.
Referenced by getPreventDoubleSubmission().