ILIAS
Release_4_0_x_branch Revision 61816
|
Toolbar. More...
Public Member Functions | |
__construct () | |
setFormAction ($a_val, $a_multipart=false) | |
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. | |
addButton ($a_txt, $a_cmd, $a_target="", $a_acc_key="") | |
Add button to toolbar. | |
addFormButton ($a_txt, $a_cmd, $a_acc_key="") | |
Add form button to toolbar. | |
addInputItem ($a_item, $a_output_label=false) | |
Add input item. | |
addSeparator () | |
Add separator. | |
addSpacer () | |
Add spacer. | |
getHTML () | |
Get toolbar html. |
Data Fields | |
$items = array() |
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 17 of file class.ilToolbarGUI.php.
ilToolbarGUI::addButton | ( | $a_txt, | |
$a_cmd, | |||
$a_target = "" , |
|||
$a_acc_key = "" |
|||
) |
Add button to toolbar.
string | text |
string | link href / submit command |
string | frame target |
string | access key |
Definition at line 59 of file class.ilToolbarGUI.php.
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 72 of file class.ilToolbarGUI.php.
ilToolbarGUI::addInputItem | ( | $a_item, | |
$a_output_label = false |
|||
) |
Add input item.
Definition at line 81 of file class.ilToolbarGUI.php.
ilToolbarGUI::addSeparator | ( | ) |
Add separator.
Definition at line 89 of file class.ilToolbarGUI.php.
ilToolbarGUI::addSpacer | ( | ) |
Add spacer.
Definition at line 97 of file class.ilToolbarGUI.php.
ilToolbarGUI::getFormAction | ( | ) |
Get form action.
Definition at line 38 of file class.ilToolbarGUI.php.
Referenced by getHTML().
ilToolbarGUI::getHTML | ( | ) |
Get toolbar html.
Definition at line 105 of file class.ilToolbarGUI.php.
References $lng, $tpl, ilAccessKeyGUI\getAttribute(), and getFormAction().
ilToolbarGUI::setFormAction | ( | $a_val, | |
$a_multipart = false |
|||
) |
Set form action (if form action is set, toolbar is wrapped into form tags.
string | form action |
Definition at line 27 of file class.ilToolbarGUI.php.
ilToolbarGUI::setLeadingImage | ( | $a_img, | |
$a_alt | |||
) |
Set leading image.
Definition at line 46 of file class.ilToolbarGUI.php.
ilToolbarGUI::$items = array() |
Definition at line 15 of file class.ilToolbarGUI.php.