|
ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Inheritance diagram for ilButtonBase:
Collaboration diagram for ilButtonBase:Public Member Functions | |
| __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 () | |
| getToolbarHTML () | |
| Get input item HTML to be inserted into ilToolbarGUI. More... | |
Static Public Member Functions | |
| static | getInstance () |
| Factory. More... | |
Data Fields | |
| const | TYPE_SUBMIT = 1 |
| const | TYPE_LINK = 2 |
| const | TYPE_SPLIT = 3 |
| const | TYPE_BUTTON = 4 |
Protected Member Functions | |
| __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... | |
Protected Attributes | |
| $lng | |
| $type | |
| $id | |
| $caption | |
| $caption_is_lng_id | |
| $primary | |
| $omit_prevent_double_submission | |
| $onclick | |
| $acc_key | |
| $disabled | |
| $css = array() | |
| $apply_default_css = true | |
Definition at line 13 of file class.ilButtonBase.php.
|
protected |
Constructor.
| int | $a_type |
Reimplemented in ilAssFileUploadFileTableCommandButton, ilAssFileUploadFileTableDeleteButton, and ilAssFileUploadFileTableReuseButton.
Definition at line 47 of file class.ilButtonBase.php.
References $a_type, $DIC, and setType().
Here is the call graph for this function:| ilButtonBase::__clone | ( | ) |
Clone instance.
Definition at line 58 of file class.ilButtonBase.php.
References setId().
Here is the call graph for this function:| ilButtonBase::addCSSClass | ( | $a_value | ) |
Add CSS class.
| string | $a_value |
Definition at line 252 of file class.ilButtonBase.php.
Referenced by ilAssFileUploadFileTableDeleteButton\__construct(), and prepareRender().
Here is the caller graph for this function:| ilButtonBase::applyDefaultCss | ( | $apply_default_css = null | ) |
| boolean | null | $apply_default_css |
Definition at line 355 of file class.ilButtonBase.php.
References $apply_default_css.
Referenced by prepareRender().
Here is the caller graph for this function:
|
protected |
Gather all active CSS classes.
Definition at line 277 of file class.ilButtonBase.php.
References $css, getCSSClasses(), getOmitPreventDoubleSubmission(), and isPrimary().
Referenced by renderAttributes().
Here is the call graph for this function:
Here is the caller graph for this function:| ilButtonBase::getAccessKey | ( | ) |
Get access key.
Definition at line 222 of file class.ilButtonBase.php.
References $acc_key.
Referenced by renderAttributes().
Here is the caller graph for this function:| ilButtonBase::getCaption | ( | $a_translate = true | ) |
Get caption.
| bool | $a_translate |
Definition at line 133 of file class.ilButtonBase.php.
References $caption, and $lng.
Referenced by ilButton\render(), ilSubmitButton\render(), ilImageLinkButton\renderCaption(), ilJsLinkButton\renderCaption(), and ilLinkButton\renderCaption().
Here is the caller graph for this function:| ilButtonBase::getCSSClasses | ( | ) |
Get CSS class(es)
Definition at line 262 of file class.ilButtonBase.php.
References $css.
Referenced by gatherCssClasses().
Here is the caller graph for this function:| ilButtonBase::getId | ( | ) |
Get id.
Definition at line 110 of file class.ilButtonBase.php.
References $id.
Referenced by renderAttributes().
Here is the caller graph for this function:
|
staticabstract |
Factory.
Reimplemented in ilDclLinkButton, ilTestPlayerNavButton, ilAssFileUploadFileTableDeleteButton, ilAssFileUploadFileTableReuseButton, ilButton, ilImageLinkButton, ilJsLinkButton, ilLinkButton, ilSubmitButton, and ilSplitButtonGUI.
| ilButtonBase::getOmitPreventDoubleSubmission | ( | ) |
Get double submission prevention status.
Definition at line 182 of file class.ilButtonBase.php.
References $omit_prevent_double_submission.
Referenced by gatherCssClasses().
Here is the caller graph for this function:| ilButtonBase::getOnClick | ( | ) |
Get onclick.
Definition at line 202 of file class.ilButtonBase.php.
References $onclick.
Referenced by ilJsLinkButton\render(), and renderAttributes().
Here is the caller graph for this function:| ilButtonBase::getToolbarHTML | ( | ) |
Implements ilToolbarItem.
Definition at line 375 of file class.ilButtonBase.php.
References render().
Here is the call graph for this function:| ilButtonBase::getType | ( | ) |
| ilButtonBase::isDisabled | ( | ) |
Get disabled status.
Definition at line 242 of file class.ilButtonBase.php.
References $disabled.
Referenced by renderAttributes().
Here is the caller graph for this function:| ilButtonBase::isPrimary | ( | ) |
Get primary status.
Definition at line 162 of file class.ilButtonBase.php.
References $primary.
Referenced by ilToolbarGUI\addButtonInstance(), gatherCssClasses(), and ilSplitButtonGUI\render().
Here is the caller graph for this function:
|
protected |
Prepare render.
Reimplemented in ilDclLinkButton, and ilImageLinkButton.
Definition at line 343 of file class.ilButtonBase.php.
References addCSSClass(), and applyDefaultCss().
Referenced by ilTestPlayerNavButton\render(), ilButton\render(), ilJsLinkButton\render(), ilLinkButton\render(), and ilSubmitButton\render().
Here is the call graph for this function:
Here is the caller graph for this function:
|
abstract |
Render HTML.
Reimplemented in ilDclLinkButton, ilTestPlayerNavButton, ilButton, ilJsLinkButton, ilLinkButton, ilSubmitButton, and ilSplitButtonGUI.
Referenced by getToolbarHTML().
Here is the caller graph for this function:
|
protected |
Render current HTML attributes.
| array | $a_additional_attr |
Reimplemented in ilAssFileUploadFileTableCommandButton, and ilLinkButton.
Definition at line 317 of file class.ilButtonBase.php.
References gatherCssClasses(), getAccessKey(), getId(), ilAccessKey\getKey(), getOnClick(), isDisabled(), and renderAttributesHelper().
Referenced by ilButton\render(), ilJsLinkButton\render(), and ilSubmitButton\render().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Render HTML node attributes.
Definition at line 296 of file class.ilButtonBase.php.
Referenced by ilDclLinkButton\render(), renderAttributes(), and ilImageLinkButton\renderCaption().
Here is the caller graph for this function:| ilButtonBase::setAccessKey | ( | $a_value | ) |
Set access key.
| string | $a_value |
Definition at line 212 of file class.ilButtonBase.php.
| ilButtonBase::setCaption | ( | $a_value, | |
$a_is_lng_id = true |
|||
| ) |
Set caption.
| string | $a_value | |
| bool | $a_is_lng_id |
Definition at line 121 of file class.ilButtonBase.php.
Referenced by ilAssFileUploadFileTableDeleteButton\__construct(), and ilAssFileUploadFileTableReuseButton\__construct().
Here is the caller graph for this function:| ilButtonBase::setDisabled | ( | $a_value | ) |
Toggle disabled status.
| bool | $a_value |
Definition at line 232 of file class.ilButtonBase.php.
| ilButtonBase::setId | ( | $a_value | ) |
Set id.
| string | $a_value |
Definition at line 100 of file class.ilButtonBase.php.
Referenced by __clone().
Here is the caller graph for this function:| ilButtonBase::setOmitPreventDoubleSubmission | ( | $a_value | ) |
Toggle double submission prevention status.
| bool | $a_value |
Definition at line 172 of file class.ilButtonBase.php.
| ilButtonBase::setOnClick | ( | $a_value | ) |
Set onclick.
| string | $a_value |
Definition at line 192 of file class.ilButtonBase.php.
| ilButtonBase::setPrimary | ( | $a_value | ) |
Toggle primary status.
| bool | $a_value |
Definition at line 152 of file class.ilButtonBase.php.
|
protected |
Set button type.
| int | $a_value |
Definition at line 80 of file class.ilButtonBase.php.
Referenced by __construct().
Here is the caller graph for this function:
|
protected |
Definition at line 27 of file class.ilButtonBase.php.
Referenced by getAccessKey().
|
protected |
Definition at line 34 of file class.ilButtonBase.php.
Referenced by applyDefaultCss().
|
protected |
Definition at line 22 of file class.ilButtonBase.php.
Referenced by getCaption(), and ilTestPlayerNavButton\renderCaption().
|
protected |
Definition at line 23 of file class.ilButtonBase.php.
|
protected |
Definition at line 29 of file class.ilButtonBase.php.
Referenced by gatherCssClasses(), and getCSSClasses().
|
protected |
Definition at line 28 of file class.ilButtonBase.php.
Referenced by isDisabled().
|
protected |
Definition at line 21 of file class.ilButtonBase.php.
Referenced by getId(), and renderAttributesHelper().
|
protected |
Definition at line 18 of file class.ilButtonBase.php.
Referenced by getCaption().
|
protected |
Definition at line 25 of file class.ilButtonBase.php.
Referenced by getOmitPreventDoubleSubmission().
|
protected |
Definition at line 26 of file class.ilButtonBase.php.
Referenced by getOnClick().
|
protected |
Definition at line 24 of file class.ilButtonBase.php.
Referenced by isPrimary().
|
protected |
Definition at line 20 of file class.ilButtonBase.php.
Referenced by ilAssFileUploadFileTableDeleteButton\__construct(), ilAssFileUploadFileTableReuseButton\__construct(), and getType().
| const ilButtonBase::TYPE_BUTTON = 4 |
Definition at line 39 of file class.ilButtonBase.php.
Referenced by ilButton\getInstance().
| const ilButtonBase::TYPE_LINK = 2 |
Definition at line 37 of file class.ilButtonBase.php.
Referenced by ilTestPlayerNavButton\getInstance(), ilImageLinkButton\getInstance(), ilJsLinkButton\getInstance(), and ilLinkButton\getInstance().
| const ilButtonBase::TYPE_SPLIT = 3 |
Definition at line 38 of file class.ilButtonBase.php.
Referenced by ilSplitButtonGUI\getInstance().
| const ilButtonBase::TYPE_SUBMIT = 1 |
Definition at line 36 of file class.ilButtonBase.php.
Referenced by ilAssFileUploadFileTableDeleteButton\getInstance(), ilAssFileUploadFileTableReuseButton\getInstance(), and ilSubmitButton\getInstance().