|
ILIAS
release_5-0 Revision 5.0.0-1144-gc4397b1f870
|
Inheritance diagram for ilButton:
Collaboration diagram for ilButton: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... | |
| render () | |
| Render HTML. More... | |
Static Public Member Functions | |
| static | getInstance () |
| Factory. More... | |
Data Fields | |
| const | TYPE_SUBMIT = 1 |
| const | TYPE_LINK = 2 |
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 | |
| $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().
Here is the call graph for this function:| ilButton::__clone | ( | ) |
Clone instance.
Definition at line 41 of file class.ilButton.php.
References setId().
Here is the call graph for this function:| ilButton::addCSSClass | ( | $a_value | ) |
Add CSS class.
| string | $a_value |
Definition at line 236 of file class.ilButton.php.
Referenced by prepareRender().
Here is the caller graph for this function:
|
protected |
Gather all active CSS classes.
Definition at line 261 of file class.ilButton.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:| ilButton::getAccessKey | ( | ) |
Get access key.
Definition at line 206 of file class.ilButton.php.
References $acc_key.
Referenced by renderAttributes().
Here is the caller graph for this function:| 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().
Here is the caller graph for this function:| ilButton::getCSSClasses | ( | ) |
Get CSS class(es)
Definition at line 246 of file class.ilButton.php.
References $css.
Referenced by gatherCssClasses().
Here is the caller graph for this function:| ilButton::getId | ( | ) |
Get id.
Definition at line 93 of file class.ilButton.php.
References $id.
Referenced by renderAttributes().
Here is the caller graph for this function:
|
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().
Here is the caller graph for this function:| ilButton::getOnClick | ( | ) |
Get onclick.
Definition at line 186 of file class.ilButton.php.
References $onclick.
Referenced by renderAttributes().
Here is the caller graph for this function:| ilButton::getType | ( | ) |
| ilButton::isDisabled | ( | ) |
Get disabled status.
Definition at line 226 of file class.ilButton.php.
References $disabled.
Referenced by renderAttributes().
Here is the caller graph for this function:| ilButton::isPrimary | ( | ) |
Get primary status.
Definition at line 146 of file class.ilButton.php.
References $primary.
Referenced by gatherCssClasses().
Here is the caller graph for this function:
|
protected |
Prepare render
Reimplemented in ilDataCollectionLinkButton, and ilImageLinkButton.
Definition at line 335 of file class.ilButton.php.
References addCSSClass().
Referenced by 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 ilDataCollectionLinkButton, ilLinkButton, and ilSubmitButton.
|
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().
Here is the call graph for this function:
|
protected |
Render HTML node attributes.
Definition at line 282 of file class.ilButton.php.
Referenced by renderAttributes().
Here is the caller graph for this function:| 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().
Here is the caller graph for this function:| 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().
Here is the caller graph for this function:
|
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().