ILIAS
release_8 Revision v8.19-1-g4e8f2f9140c
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Public Member Functions | |
addMenuItem (ilSplitButtonMenuItem $menu_item) | |
removeMenuItem (ilSplitButtonMenuItem $menu_item) | |
hasMenuItems () | |
getMenuItems () | |
setMenuItems (array $menu_items) | |
getDefaultButton () | |
hasDefaultButton () | |
setDefaultButton (ilButtonBase $default_button) | |
render () | |
![]() | |
__clone () | |
getType () | |
setId (?string $a_value) | |
getId () | |
setCaption (string $a_value, bool $a_is_lng_id=true) | |
getCaption (bool $a_translate=true) | |
setPrimary (bool $a_value) | |
isPrimary () | |
setOmitPreventDoubleSubmission (bool $a_value) | |
Toggle double submission prevention status. More... | |
getOmitPreventDoubleSubmission () | |
setOnClick (string $a_value) | |
getOnClick () | |
setDisabled (bool $a_value) | |
isDisabled () | |
addCSSClass (string $a_value) | |
getCSSClasses () | |
applyDefaultCss (?bool $apply_default_css=null) | |
render () | |
getToolbarHTML () | |
Get input item HTML to be inserted into ilToolbarGUI. More... | |
Static Public Member Functions | |
static | getInstance () |
![]() | |
static | getInstance () |
Protected Member Functions | |
__construct (int $a_type) | |
![]() | |
__construct (int $a_type) | |
setType (int $a_value) | |
gatherCssClasses () | |
renderAttributesHelper (array $a_attr) | |
renderAttributes (array $a_additional_attr=null) | |
Render current HTML attributes. More... | |
prepareRender () | |
Protected Attributes | |
ilButtonBase | $default_button |
array | $menu_items = [] |
![]() | |
ilLanguage | $lng |
int | $type = 0 |
string | $id = "" |
string | $caption = "" |
bool | $caption_is_lng_id = false |
bool | $primary = false |
bool | $omit_prevent_double_submission = false |
string | $onclick = "" |
int | $acc_key = 0 |
bool | $disabled = false |
array | $css = array() |
bool | $apply_default_css = true |
Additional Inherited Members | |
![]() | |
const | TYPE_SUBMIT = 1 |
const | TYPE_LINK = 2 |
const | TYPE_SPLIT = 3 |
const | TYPE_BUTTON = 4 |
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Class ilSplitButton
Definition at line 23 of file class.ilSplitButtonGUI.php.
|
protected |
Definition at line 31 of file class.ilSplitButtonGUI.php.
References ILIAS\GlobalScreen\Provider\__construct().
ilSplitButtonGUI::addMenuItem | ( | ilSplitButtonMenuItem | $menu_item | ) |
Definition at line 41 of file class.ilSplitButtonGUI.php.
ilSplitButtonGUI::getDefaultButton | ( | ) |
Definition at line 85 of file class.ilSplitButtonGUI.php.
References $default_button.
Referenced by render().
|
static |
Definition at line 36 of file class.ilSplitButtonGUI.php.
Referenced by ilRepositorySearchGUI\fillAutoCompleteToolbar(), ilPortfolioPageTableGUI\fillRow(), assClozeTestGUI\populateQuestionSpecificFormPart(), ilObjForumGUI\renderSplitButton(), and ilObjForumGUI\viewThreadObject().
ilSplitButtonGUI::getMenuItems | ( | ) |
Definition at line 62 of file class.ilSplitButtonGUI.php.
References $menu_items.
Referenced by render().
ilSplitButtonGUI::hasDefaultButton | ( | ) |
Definition at line 90 of file class.ilSplitButtonGUI.php.
Referenced by render().
ilSplitButtonGUI::hasMenuItems | ( | ) |
Definition at line 54 of file class.ilSplitButtonGUI.php.
Referenced by render().
ilSplitButtonGUI::removeMenuItem | ( | ilSplitButtonMenuItem | $menu_item | ) |
ilSplitButtonGUI::render | ( | ) |
ilSplitButtonException |
Definition at line 103 of file class.ilSplitButtonGUI.php.
References $tpl, getDefaultButton(), getMenuItems(), hasDefaultButton(), hasMenuItems(), ilButtonBase\isPrimary(), and ILIAS\Repository\lng().
ilSplitButtonGUI::setDefaultButton | ( | ilButtonBase | $default_button | ) |
Definition at line 95 of file class.ilSplitButtonGUI.php.
References $default_button.
ilSplitButtonGUI::setMenuItems | ( | array | $menu_items | ) |
ilSplitButtonMenuItem[] | $menu_items |
ilSplitButtonException |
Definition at line 71 of file class.ilSplitButtonGUI.php.
References $menu_items.
|
protected |
Definition at line 25 of file class.ilSplitButtonGUI.php.
Referenced by getDefaultButton(), and setDefaultButton().
|
protected |
Definition at line 29 of file class.ilSplitButtonGUI.php.
Referenced by getMenuItems(), and setMenuItems().