ILIAS
Release_5_0_x_branch Revision 61816
|
Public Member Functions | |
__clone () | |
Clone instance. | |
getType () | |
Get button type. | |
setId ($a_value) | |
Set id. | |
getId () | |
Get id. | |
setCaption ($a_value, $a_is_lng_id=true) | |
Set caption. | |
getCaption ($a_translate=true) | |
Get caption. | |
setPrimary ($a_value) | |
Toggle primary status. | |
isPrimary () | |
Get primary status. | |
setOmitPreventDoubleSubmission ($a_value) | |
Toggle double submission prevention status. | |
getOmitPreventDoubleSubmission () | |
Get double submission prevention status. | |
setOnClick ($a_value) | |
Set onclick. | |
getOnClick () | |
Get onclick. | |
setAccessKey ($a_value) | |
Set access key. | |
getAccessKey () | |
Get access key. | |
setDisabled ($a_value) | |
Toggle disabled status. | |
isDisabled () | |
Get disabled status. | |
addCSSClass ($a_value) | |
Add CSS class. | |
getCSSClasses () | |
Get CSS class(es) | |
render () | |
Render HTML. |
Static Public Member Functions | |
static | getInstance () |
Factory. |
Data Fields | |
const | TYPE_SUBMIT = 1 |
const | TYPE_LINK = 2 |
Protected Member Functions | |
__construct ($a_type) | |
Constructor. | |
setType ($a_value) | |
Set button type. | |
gatherCssClasses () | |
Gather all active CSS classes. | |
renderAttributesHelper (array $a_attr) | |
Render HTML node attributes. | |
renderAttributes (array $a_additional_attr=null) | |
Render current HTML attributes. | |
prepareRender () | |
Prepare render. |
Protected Attributes | |
$type | |
$id | |
$caption | |
$caption_is_lng_id | |
$primary | |
$omit_prevent_double_submission | |
$onclick | |
$acc_key | |
$disabled | |
$css = array() |
Definition at line 11 of file class.ilButton.php.
|
protected |
Constructor.
int | $a_type |
Definition at line 33 of file class.ilButton.php.
References setType().
ilButton::__clone | ( | ) |
Clone instance.
Definition at line 41 of file class.ilButton.php.
References setId().
ilButton::addCSSClass | ( | $a_value | ) |
Add CSS class.
string | $a_value |
Definition at line 236 of file class.ilButton.php.
Referenced by prepareRender().
|
protected |
Gather all active CSS classes.
Definition at line 261 of file class.ilButton.php.
References $css, getCSSClasses(), getOmitPreventDoubleSubmission(), and isPrimary().
Referenced by renderAttributes().
ilButton::getAccessKey | ( | ) |
Get access key.
Definition at line 206 of file class.ilButton.php.
References $acc_key.
Referenced by renderAttributes().
ilButton::getCaption | ( | $a_translate = true | ) |
Get caption.
bool | $a_translate |
Definition at line 116 of file class.ilButton.php.
References $caption, and $lng.
Referenced by ilSubmitButton\render(), and ilImageLinkButton\renderCaption().
ilButton::getCSSClasses | ( | ) |
Get CSS class(es)
Definition at line 246 of file class.ilButton.php.
References $css.
Referenced by gatherCssClasses().
ilButton::getId | ( | ) |
Get id.
Definition at line 93 of file class.ilButton.php.
References $id.
Referenced by renderAttributes().
|
staticabstract |
Factory.
Reimplemented in ilDataCollectionLinkButton, ilImageLinkButton, ilLinkButton, and ilSubmitButton.
ilButton::getOmitPreventDoubleSubmission | ( | ) |
Get double submission prevention status.
Definition at line 166 of file class.ilButton.php.
References $omit_prevent_double_submission.
Referenced by gatherCssClasses().
ilButton::getOnClick | ( | ) |
Get onclick.
Definition at line 186 of file class.ilButton.php.
References $onclick.
Referenced by renderAttributes().
ilButton::getType | ( | ) |
ilButton::isDisabled | ( | ) |
Get disabled status.
Definition at line 226 of file class.ilButton.php.
References $disabled.
Referenced by renderAttributes().
ilButton::isPrimary | ( | ) |
Get primary status.
Definition at line 146 of file class.ilButton.php.
References $primary.
Referenced by gatherCssClasses().
|
protected |
Prepare render.
Reimplemented in ilImageLinkButton, and ilDataCollectionLinkButton.
Definition at line 335 of file class.ilButton.php.
References addCSSClass().
Referenced by ilSubmitButton\render(), and ilLinkButton\render().
|
abstract |
Render HTML.
Reimplemented in ilLinkButton, ilSubmitButton, and ilDataCollectionLinkButton.
|
protected |
Render current HTML attributes.
array | $a_additional_attr |
Definition at line 306 of file class.ilButton.php.
References gatherCssClasses(), getAccessKey(), getId(), ilAccessKey\getKey(), getOnClick(), isDisabled(), and renderAttributesHelper().
|
protected |
Render HTML node attributes.
Definition at line 282 of file class.ilButton.php.
Referenced by renderAttributes().
ilButton::setAccessKey | ( | $a_value | ) |
Set access key.
string | $a_value |
Definition at line 196 of file class.ilButton.php.
ilButton::setCaption | ( | $a_value, | |
$a_is_lng_id = true |
|||
) |
Set caption.
string | $a_value | |
bool | $a_is_lng_id |
Definition at line 104 of file class.ilButton.php.
ilButton::setDisabled | ( | $a_value | ) |
Toggle disabled status.
bool | $a_value |
Definition at line 216 of file class.ilButton.php.
ilButton::setId | ( | $a_value | ) |
Set id.
string | $a_value |
Definition at line 83 of file class.ilButton.php.
Referenced by __clone().
ilButton::setOmitPreventDoubleSubmission | ( | $a_value | ) |
Toggle double submission prevention status.
bool | $a_value |
Definition at line 156 of file class.ilButton.php.
ilButton::setOnClick | ( | $a_value | ) |
Set onclick.
string | $a_value |
Definition at line 176 of file class.ilButton.php.
ilButton::setPrimary | ( | $a_value | ) |
Toggle primary status.
bool | $a_value |
Definition at line 136 of file class.ilButton.php.
|
protected |
Set button type.
int | $a_value |
Definition at line 63 of file class.ilButton.php.
Referenced by __construct().
|
protected |
Definition at line 20 of file class.ilButton.php.
Referenced by getAccessKey().
|
protected |
Definition at line 15 of file class.ilButton.php.
Referenced by getCaption().
|
protected |
Definition at line 16 of file class.ilButton.php.
|
protected |
Definition at line 22 of file class.ilButton.php.
Referenced by gatherCssClasses(), and getCSSClasses().
|
protected |
Definition at line 21 of file class.ilButton.php.
Referenced by isDisabled().
|
protected |
Definition at line 14 of file class.ilButton.php.
Referenced by getId(), and renderAttributesHelper().
|
protected |
Definition at line 18 of file class.ilButton.php.
Referenced by getOmitPreventDoubleSubmission().
|
protected |
Definition at line 19 of file class.ilButton.php.
Referenced by getOnClick().
|
protected |
Definition at line 17 of file class.ilButton.php.
Referenced by isPrimary().
|
protected |
Definition at line 13 of file class.ilButton.php.
Referenced by getType().
const ilButton::TYPE_LINK = 2 |
Definition at line 25 of file class.ilButton.php.
Referenced by ilImageLinkButton\getInstance(), and ilLinkButton\getInstance().
const ilButton::TYPE_SUBMIT = 1 |
Definition at line 24 of file class.ilButton.php.
Referenced by ilSubmitButton\getInstance().