|
ILIAS
release_8 Revision v8.24
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Inheritance diagram for ilButtonBase:
Collaboration diagram for ilButtonBase:Public Member Functions | |
| __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... | |
| getToolbarHTML () | |
| Get input item HTML to be inserted into ilToolbarGUI. More... | |
Static Public Member Functions | |
| static | getInstance () |
Data Fields | |
| const | TYPE_SUBMIT = 1 |
| const | TYPE_LINK = 2 |
| const | TYPE_SPLIT = 3 |
| const | TYPE_BUTTON = 4 |
Protected Member Functions | |
| __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 | |
| 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 |
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 Button GUI
Definition at line 25 of file class.ilButtonBase.php.
|
protected |
Reimplemented in ilSplitButtonGUI.
Definition at line 45 of file class.ilButtonBase.php.
References $DIC, ILIAS\Repository\lng(), and setType().
Here is the call graph for this function:| ilButtonBase::__clone | ( | ) |
Definition at line 53 of file class.ilButtonBase.php.
References setId().
Here is the call graph for this function:| ilButtonBase::addCSSClass | ( | string | $a_value | ) |
Definition at line 147 of file class.ilButtonBase.php.
Referenced by ilAssFileUploadFileTableDeleteButton\__construct(), and prepareRender().
Here is the caller graph for this function:| ilButtonBase::applyDefaultCss | ( | ?bool | $apply_default_css = null | ) |
Definition at line 221 of file class.ilButtonBase.php.
References $apply_default_css.
Referenced by prepareRender().
Here is the caller graph for this function:
|
protected |
Definition at line 162 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::getCaption | ( | bool | $a_translate = true | ) |
Definition at line 90 of file class.ilButtonBase.php.
References $caption, $lng, and ilLanguage\txt().
Referenced by ilButton\render(), ilSubmitButton\render(), ilImageLinkButton\renderCaption(), ilJsLinkButton\renderCaption(), and ilLinkButton\renderCaption().
Here is the call graph for this function:
Here is the caller graph for this function:| ilButtonBase::getCSSClasses | ( | ) |
Definition at line 152 of file class.ilButtonBase.php.
References $css.
Referenced by gatherCssClasses().
Here is the caller graph for this function:| ilButtonBase::getId | ( | ) |
Definition at line 79 of file class.ilButtonBase.php.
References $id.
Referenced by renderAttributes().
Here is the caller graph for this function:
|
staticabstract |
| ilButtonBase::getOmitPreventDoubleSubmission | ( | ) |
Definition at line 122 of file class.ilButtonBase.php.
References $omit_prevent_double_submission.
Referenced by gatherCssClasses().
Here is the caller graph for this function:| ilButtonBase::getOnClick | ( | ) |
Definition at line 132 of file class.ilButtonBase.php.
References $onclick.
Referenced by ilJsLinkButton\render(), and renderAttributes().
Here is the caller graph for this function:| ilButtonBase::getToolbarHTML | ( | ) |
Get input item HTML to be inserted into ilToolbarGUI.
Implements ilToolbarItem.
Definition at line 233 of file class.ilButtonBase.php.
References render().
Here is the call graph for this function:| ilButtonBase::getType | ( | ) |
| ilButtonBase::isDisabled | ( | ) |
Definition at line 142 of file class.ilButtonBase.php.
References $disabled.
Referenced by renderAttributes().
Here is the caller graph for this function:| ilButtonBase::isPrimary | ( | ) |
Definition at line 109 of file class.ilButtonBase.php.
References $primary.
Referenced by ilToolbarGUI\addButtonInstance(), gatherCssClasses(), and ilSplitButtonGUI\render().
Here is the caller graph for this function:
|
protected |
Reimplemented in ilDclLinkButton, and ilImageLinkButton.
Definition at line 213 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 |
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.
Reimplemented in ilAssFileUploadFileTableCommandButton, and ilLinkButton.
Definition at line 195 of file class.ilButtonBase.php.
References gatherCssClasses(), getId(), 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 |
Definition at line 176 of file class.ilButtonBase.php.
Referenced by ilDclLinkButton\render(), renderAttributes(), and ilImageLinkButton\renderCaption().
Here is the caller graph for this function:| ilButtonBase::setCaption | ( | string | $a_value, |
| bool | $a_is_lng_id = true |
||
| ) |
Definition at line 84 of file class.ilButtonBase.php.
Referenced by ilAssFileUploadFileTableDeleteButton\__construct(), and ilAssFileUploadFileTableReuseButton\__construct().
Here is the caller graph for this function:| ilButtonBase::setDisabled | ( | bool | $a_value | ) |
Definition at line 137 of file class.ilButtonBase.php.
References ILIAS\UI\examples\Input\Field\Checkbox\disabled().
Here is the call graph for this function:| ilButtonBase::setId | ( | ?string | $a_value | ) |
Definition at line 74 of file class.ilButtonBase.php.
Referenced by __clone().
Here is the caller graph for this function:| ilButtonBase::setOmitPreventDoubleSubmission | ( | bool | $a_value | ) |
Toggle double submission prevention status.
Definition at line 117 of file class.ilButtonBase.php.
| ilButtonBase::setOnClick | ( | string | $a_value | ) |
Definition at line 127 of file class.ilButtonBase.php.
| ilButtonBase::setPrimary | ( | bool | $a_value | ) |
Definition at line 104 of file class.ilButtonBase.php.
|
protected |
Definition at line 64 of file class.ilButtonBase.php.
Referenced by __construct().
Here is the caller graph for this function:
|
protected |
Definition at line 35 of file class.ilButtonBase.php.
|
protected |
Definition at line 38 of file class.ilButtonBase.php.
Referenced by applyDefaultCss().
|
protected |
Definition at line 30 of file class.ilButtonBase.php.
Referenced by getCaption(), and ilTestPlayerNavButton\renderCaption().
|
protected |
Definition at line 31 of file class.ilButtonBase.php.
|
protected |
Definition at line 37 of file class.ilButtonBase.php.
Referenced by gatherCssClasses(), and getCSSClasses().
|
protected |
Definition at line 36 of file class.ilButtonBase.php.
Referenced by isDisabled().
|
protected |
Definition at line 29 of file class.ilButtonBase.php.
Referenced by getId(), and renderAttributesHelper().
|
protected |
Definition at line 27 of file class.ilButtonBase.php.
Referenced by getCaption(), and ilAssFileUploadFileTableCommandButton\lng().
|
protected |
Definition at line 33 of file class.ilButtonBase.php.
Referenced by getOmitPreventDoubleSubmission().
|
protected |
Definition at line 34 of file class.ilButtonBase.php.
Referenced by getOnClick().
|
protected |
Definition at line 32 of file class.ilButtonBase.php.
Referenced by isPrimary().
|
protected |
Definition at line 28 of file class.ilButtonBase.php.
Referenced by ilAssFileUploadFileTableDeleteButton\__construct(), ilAssFileUploadFileTableReuseButton\__construct(), and getType().
| const ilButtonBase::TYPE_BUTTON = 4 |
Definition at line 43 of file class.ilButtonBase.php.
Referenced by ilButton\getInstance().
| const ilButtonBase::TYPE_LINK = 2 |
Definition at line 41 of file class.ilButtonBase.php.
Referenced by ilTestPlayerNavButton\getInstance(), ilImageLinkButton\getInstance(), ilJsLinkButton\getInstance(), and ilLinkButton\getInstance().
| const ilButtonBase::TYPE_SPLIT = 3 |
Definition at line 42 of file class.ilButtonBase.php.
Referenced by ilSplitButtonGUI\getInstance().
| const ilButtonBase::TYPE_SUBMIT = 1 |
Definition at line 40 of file class.ilButtonBase.php.
Referenced by ilAssFileUploadFileTableDeleteButton\getInstance(), ilAssFileUploadFileTableReuseButton\getInstance(), and ilSubmitButton\getInstance().