ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
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 () | |
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 |
Definition at line 47 of file class.ilButtonBase.php.
References $a_type, $DIC, and setType().
ilButtonBase::__clone | ( | ) |
Clone instance.
Definition at line 58 of file class.ilButtonBase.php.
References getInstance(), and setId().
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().
ilButtonBase::applyDefaultCss | ( | $apply_default_css = null | ) |
boolean | null | $apply_default_css |
Definition at line 355 of file class.ilButtonBase.php.
References $apply_default_css, and render().
Referenced by prepareRender().
|
protected |
Gather all active CSS classes.
Definition at line 277 of file class.ilButtonBase.php.
References $css, getCSSClasses(), getOmitPreventDoubleSubmission(), and isPrimary().
Referenced by renderAttributes().
ilButtonBase::getAccessKey | ( | ) |
Get access key.
Definition at line 222 of file class.ilButtonBase.php.
References $acc_key.
Referenced by renderAttributes().
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 ilSubmitButton\render(), ilButton\render(), ilJsLinkButton\renderCaption(), ilImageLinkButton\renderCaption(), and ilLinkButton\renderCaption().
ilButtonBase::getCSSClasses | ( | ) |
Get CSS class(es)
Definition at line 262 of file class.ilButtonBase.php.
References $css.
Referenced by gatherCssClasses().
ilButtonBase::getId | ( | ) |
Get id.
Definition at line 110 of file class.ilButtonBase.php.
References $id.
Referenced by renderAttributes().
|
staticabstract |
ilButtonBase::getOmitPreventDoubleSubmission | ( | ) |
Get double submission prevention status.
Definition at line 182 of file class.ilButtonBase.php.
References $omit_prevent_double_submission.
Referenced by gatherCssClasses().
ilButtonBase::getOnClick | ( | ) |
Get onclick.
Definition at line 202 of file class.ilButtonBase.php.
References $onclick.
Referenced by ilJsLinkButton\render(), and renderAttributes().
ilButtonBase::getToolbarHTML | ( | ) |
Implements ilToolbarItem.
Definition at line 375 of file class.ilButtonBase.php.
References render().
ilButtonBase::getType | ( | ) |
ilButtonBase::isDisabled | ( | ) |
Get disabled status.
Definition at line 242 of file class.ilButtonBase.php.
References $disabled.
Referenced by renderAttributes().
ilButtonBase::isPrimary | ( | ) |
Get primary status.
Definition at line 162 of file class.ilButtonBase.php.
References $primary.
Referenced by ilToolbarGUI\addButtonInstance(), gatherCssClasses(), and ilSplitButtonGUI\render().
|
protected |
Prepare render.
Definition at line 343 of file class.ilButtonBase.php.
References addCSSClass(), and applyDefaultCss().
Referenced by ilJsLinkButton\render(), ilSubmitButton\render(), ilTestPlayerNavButton\render(), ilLinkButton\render(), and ilButton\render().
|
abstract |
Render HTML.
Referenced by applyDefaultCss(), and getToolbarHTML().
|
protected |
Render current HTML attributes.
array | $a_additional_attr |
Definition at line 317 of file class.ilButtonBase.php.
References gatherCssClasses(), getAccessKey(), getId(), ilAccessKey\getKey(), getOnClick(), isDisabled(), and renderAttributesHelper().
Referenced by ilJsLinkButton\render(), ilSubmitButton\render(), and ilButton\render().
|
protected |
Render HTML node attributes.
Definition at line 296 of file class.ilButtonBase.php.
Referenced by ilDclLinkButton\render(), renderAttributes(), and ilImageLinkButton\renderCaption().
ilButtonBase::setAccessKey | ( | $a_value | ) |
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 ilAssFileUploadFileTableReuseButton\__construct(), and ilAssFileUploadFileTableDeleteButton\__construct().
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().
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 | ) |
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().
|
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 ilAssFileUploadFileTableReuseButton\__construct(), ilAssFileUploadFileTableDeleteButton\__construct(), and getType().
const ilButtonBase::TYPE_BUTTON = 4 |
Definition at line 39 of file class.ilButtonBase.php.
const ilButtonBase::TYPE_LINK = 2 |
Definition at line 37 of file class.ilButtonBase.php.
const ilButtonBase::TYPE_SPLIT = 3 |
Definition at line 38 of file class.ilButtonBase.php.
const ilButtonBase::TYPE_SUBMIT = 1 |
Definition at line 36 of file class.ilButtonBase.php.