ILIAS
Release_4_2_x_branch Revision 61807
|
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. | |
addButton ($a_txt, $a_cmd, $a_target="", $a_acc_key="", $a_additional_attrs= '', $a_id="") | |
Add button to toolbar. | |
addFormButton ($a_txt, $a_cmd, $a_acc_key="") | |
Add form button to toolbar. | |
addInputItem (ilToolbarItem $a_item, $a_output_label=false) | |
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 = "" |
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 21 of file class.ilToolbarGUI.php.
ilToolbarGUI::addButton | ( | $a_txt, | |
$a_cmd, | |||
$a_target = "" , |
|||
$a_acc_key = "" , |
|||
$a_additional_attrs = '' , |
|||
$a_id = "" |
|||
) |
Add button to toolbar.
string | text |
string | link href / submit command |
string | frame target |
string | access key |
Definition at line 104 of file class.ilToolbarGUI.php.
Referenced by ilBookingScheduleGUI\render(), ilBookingObjectGUI\render(), and ilBookingTypeGUI\render().
ilToolbarGUI::addFormButton | ( | $a_txt, | |
$a_cmd, | |||
$a_acc_key = "" |
|||
) |
Add form button to toolbar.
string | text |
string | link href / submit command |
string | access key |
Definition at line 119 of file class.ilToolbarGUI.php.
Referenced by ilDidacticTemplateGUI\appendToolbarSwitch().
ilToolbarGUI::addInputItem | ( | ilToolbarItem | $a_item, |
$a_output_label = false |
|||
) |
Add input item.
Definition at line 128 of file class.ilToolbarGUI.php.
Referenced by ilDidacticTemplateGUI\appendToolbarSwitch().
ilToolbarGUI::addLink | ( | $a_caption, | |
$a_url, | |||
$a_disabled = false |
|||
) |
Add link.
string | $a_caption | |
string | $a_url | |
boolean | $a_disabled |
Definition at line 165 of file class.ilToolbarGUI.php.
ilToolbarGUI::addSeparator | ( | ) |
Add separator.
Definition at line 136 of file class.ilToolbarGUI.php.
ilToolbarGUI::addSpacer | ( | $a_width = null | ) |
Add spacer.
Definition at line 152 of file class.ilToolbarGUI.php.
ilToolbarGUI::addText | ( | $a_text | ) |
Add text.
Definition at line 144 of file class.ilToolbarGUI.php.
Referenced by ilDidacticTemplateGUI\appendToolbarSwitch().
ilToolbarGUI::getCloseFormTag | ( | ) |
Get close form tag.
Definition at line 205 of file class.ilToolbarGUI.php.
References $close_form_tag.
Referenced by getHTML().
ilToolbarGUI::getFormAction | ( | ) |
Get form action.
Definition at line 43 of file class.ilToolbarGUI.php.
Referenced by getHTML().
ilToolbarGUI::getFormName | ( | ) |
Get form name.
Definition at line 225 of file class.ilToolbarGUI.php.
References $form_name.
Referenced by getHTML().
ilToolbarGUI::getHidden | ( | ) |
Get hidden.
Definition at line 71 of file class.ilToolbarGUI.php.
Referenced by getHTML().
ilToolbarGUI::getHTML | ( | ) |
Get toolbar html.
Definition at line 233 of file class.ilToolbarGUI.php.
References $lng, $tpl, ilAccessKeyGUI\getAttribute(), getCloseFormTag(), getFormAction(), getFormName(), getHidden(), getId(), and getOpenFormTag().
ilToolbarGUI::getId | ( | ) |
Get id.
Definition at line 91 of file class.ilToolbarGUI.php.
Referenced by getHTML().
ilToolbarGUI::getOpenFormTag | ( | ) |
Get open form tag.
Definition at line 185 of file class.ilToolbarGUI.php.
References $open_form_tag.
Referenced by getHTML().
ilToolbarGUI::setCloseFormTag | ( | $a_val | ) |
Set close form tag.
boolean | close form tag |
Definition at line 195 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 31 of file class.ilToolbarGUI.php.
ilToolbarGUI::setFormName | ( | $a_val | ) |
Set form name.
string | form name |
Definition at line 215 of file class.ilToolbarGUI.php.
ilToolbarGUI::setHidden | ( | $a_val | ) |
Set hidden.
boolean | $a_val | hidden |
Definition at line 61 of file class.ilToolbarGUI.php.
ilToolbarGUI::setId | ( | $a_val | ) |
Set id.
string | $a_val | id |
Definition at line 81 of file class.ilToolbarGUI.php.
ilToolbarGUI::setLeadingImage | ( | $a_img, | |
$a_alt | |||
) |
Set leading image.
Definition at line 51 of file class.ilToolbarGUI.php.
ilToolbarGUI::setOpenFormTag | ( | $a_val | ) |
Set open form tag.
boolean | open form tag |
Definition at line 175 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().