ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Class ilSplitButton. More...
Public Member Functions | |
addMenuItem (ilSplitButtonMenuItem $menu_item) | |
removeMenuItem (ilSplitButtonMenuItem $menu_item) | |
hasMenuItems () | |
getMenuItems () | |
setMenuItems ($menu_items) | |
getDefaultButton () | |
hasDefaultButton () | |
setDefaultButton (ilButtonBase $default_button) | |
render () | |
Public Member Functions inherited from ilButtonBase | |
__clone () | |
Clone instance. More... | |
getType () | |
Get button type. More... | |
setId ($a_value) | |
Set id. More... | |
getId () | |
Get id. More... | |
setCaption ($a_value, $a_is_lng_id=true) | |
Set caption. More... | |
getCaption ($a_translate=true) | |
Get caption. More... | |
setPrimary ($a_value) | |
Toggle primary status. More... | |
isPrimary () | |
Get primary status. More... | |
setOmitPreventDoubleSubmission ($a_value) | |
Toggle double submission prevention status. More... | |
getOmitPreventDoubleSubmission () | |
Get double submission prevention status. More... | |
setOnClick ($a_value) | |
Set onclick. More... | |
getOnClick () | |
Get onclick. More... | |
setAccessKey ($a_value) | |
Set access key. More... | |
getAccessKey () | |
Get access key. More... | |
setDisabled ($a_value) | |
Toggle disabled status. More... | |
isDisabled () | |
Get disabled status. More... | |
addCSSClass ($a_value) | |
Add CSS class. More... | |
getCSSClasses () | |
Get CSS class(es) More... | |
applyDefaultCss ($apply_default_css=null) | |
render () | |
Render HTML. More... | |
getToolbarHTML () | |
Static Public Member Functions | |
static | getInstance () |
Static Public Member Functions inherited from ilButtonBase | |
static | getInstance () |
Factory. More... | |
Protected Attributes | |
$lng | |
$default_button | |
$menu_items = array() | |
Protected Attributes inherited from ilButtonBase | |
$type | |
$id | |
$caption | |
$caption_is_lng_id | |
$primary | |
$omit_prevent_double_submission | |
$onclick | |
$acc_key | |
$disabled | |
$css = array() | |
$apply_default_css = true | |
Additional Inherited Members | |
Data Fields inherited from ilButtonBase | |
const | TYPE_SUBMIT = 1 |
const | TYPE_LINK = 2 |
const | TYPE_SPLIT = 3 |
const | TYPE_BUTTON = 4 |
Protected Member Functions inherited from ilButtonBase | |
__construct ($a_type) | |
Constructor. More... | |
setType ($a_value) | |
Set button type. More... | |
gatherCssClasses () | |
Gather all active CSS classes. More... | |
renderAttributesHelper (array $a_attr) | |
Render HTML node attributes. More... | |
renderAttributes (array $a_additional_attr=null) | |
Render current HTML attributes. More... | |
prepareRender () | |
Prepare render. More... | |
Class ilSplitButton.
Definition at line 14 of file class.ilSplitButtonGUI.php.
ilSplitButtonGUI::addMenuItem | ( | ilSplitButtonMenuItem | $menu_item | ) |
ilSplitButtonMenuItem | $menu_item |
Definition at line 57 of file class.ilSplitButtonGUI.php.
ilSplitButtonGUI::getDefaultButton | ( | ) |
Definition at line 111 of file class.ilSplitButtonGUI.php.
References $default_button.
Referenced by render().
|
static |
Definition at line 49 of file class.ilSplitButtonGUI.php.
Referenced by ilObjForumGUI\autosaveThreadDraftAsyncObject(), ilRepositorySearchGUI\fillAutoCompleteToolbar(), ilObjForumGUI\getForumObjects(), and assClozeTestGUI\populateQuestionSpecificFormPart().
ilSplitButtonGUI::getMenuItems | ( | ) |
Definition at line 85 of file class.ilSplitButtonGUI.php.
References $menu_items.
Referenced by render().
ilSplitButtonGUI::hasDefaultButton | ( | ) |
Definition at line 119 of file class.ilSplitButtonGUI.php.
Referenced by render().
ilSplitButtonGUI::hasMenuItems | ( | ) |
Definition at line 77 of file class.ilSplitButtonGUI.php.
Referenced by render().
ilSplitButtonGUI::removeMenuItem | ( | ilSplitButtonMenuItem | $menu_item | ) |
ilSplitButtonMenuItem | $menu_item |
Definition at line 65 of file class.ilSplitButtonGUI.php.
ilSplitButtonGUI::render | ( | ) |
ilSplitButtonException |
Definition at line 136 of file class.ilSplitButtonGUI.php.
References $tpl, getDefaultButton(), getMenuItems(), hasDefaultButton(), hasMenuItems(), and ilButtonBase\isPrimary().
ilSplitButtonGUI::setDefaultButton | ( | ilButtonBase | $default_button | ) |
ilButtonBase | $default_button |
Definition at line 127 of file class.ilSplitButtonGUI.php.
References $default_button.
ilSplitButtonGUI::setMenuItems | ( | $menu_items | ) |
ilSplitButtonMenuItem[] | $menu_items |
ilSplitButtonException |
Definition at line 94 of file class.ilSplitButtonGUI.php.
References $menu_items.
|
protected |
Definition at line 24 of file class.ilSplitButtonGUI.php.
Referenced by getDefaultButton(), and setDefaultButton().
|
protected |
Definition at line 19 of file class.ilSplitButtonGUI.php.
|
protected |
Definition at line 29 of file class.ilSplitButtonGUI.php.
Referenced by getMenuItems(), and setMenuItems().