ILIAS
Release_5_0_x_branch Revision 61816
|
Toolbar. More...
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. | |
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 | |
$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.
Referenced by ilAssQuestionPreviewToolbarGUI\__construct(), ilTestSkillEvaluationToolbarGUI\__construct(), ilTestRandomQuestionSetSourcePoolDefinitionListToolbarGUI\__construct(), and ilTestResultsToolbarGUI\__construct().
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(), ilBookingScheduleGUI\render(), and ilBookingObjectGUI\render().
ilToolbarGUI::addButtonInstance | ( | ilButton | $a_button | ) |
Add button instance.
ilButton | $a_button |
Definition at line 166 of file class.ilToolbarGUI.php.
Referenced by ilTestResultsToolbarGUI\build().
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(), ilAssQuestionPreviewToolbarGUI\build(), ilTestSkillEvaluationToolbarGUI\build(), and ilTestRandomQuestionSetSourcePoolDefinitionListToolbarGUI\populateNewQuestionSelectionRuleInputs().
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().
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().
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().
ilToolbarGUI::getCloseFormTag | ( | ) |
Get close form tag.
Definition at line 253 of file class.ilToolbarGUI.php.
References $close_form_tag.
Referenced by getHTML().
ilToolbarGUI::getFormAction | ( | ) |
Get form action.
Definition at line 45 of file class.ilToolbarGUI.php.
Referenced by getHTML().
ilToolbarGUI::getFormName | ( | ) |
Get form name.
Definition at line 273 of file class.ilToolbarGUI.php.
References $form_name.
Referenced by getHTML().
ilToolbarGUI::getHidden | ( | ) |
Get hidden.
Definition at line 73 of file class.ilToolbarGUI.php.
Referenced by getHTML().
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().
ilToolbarGUI::getId | ( | ) |
Get id.
Definition at line 93 of file class.ilToolbarGUI.php.
Referenced by getHTML().
ilToolbarGUI::getOpenFormTag | ( | ) |
Get open form tag.
Definition at line 233 of file class.ilToolbarGUI.php.
References $open_form_tag.
Referenced by getHTML().
ilToolbarGUI::getPreventDoubleSubmission | ( | ) |
Get prevent double submission.
Definition at line 113 of file class.ilToolbarGUI.php.
References $prevent_double_submission.
Referenced by getHTML().
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().
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().
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().