ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Public Member Functions | |
isFormNovalidate () | |
setFormNovalidate ($form_novalidate) | |
If the button is a submit button, this Boolean attribute specifies that the form is not to be validated when it is submitted. More... | |
getFormTarget () | |
setFormTarget ($form_target) | |
If the button is a submit button, this attribute is a name or keyword indicating where to display the response that is received after submitting the form. More... | |
getFormMethod () | |
setFormMethod ($form_method) | |
If the button is a submit button, this attribute specifies the HTTP method that the browser uses to submit the form. More... | |
getFormEncType () | |
setFormEncType ($form_enc_type) | |
If this attribute is specified, it overrides the enctype attribute of the button's form owner. More... | |
getFormAction () | |
setFormAction ($form_action) | |
The URI of a program that processes the information submitted by the button. More... | |
getForm () | |
setForm ($form) | |
The form element that the button is associated with (its form owner). More... | |
getValue () | |
setValue ($value) | |
The initial value of the button. More... | |
getName () | |
setName ($name, $is_command=true) | |
The name of the button, which is submitted with the form data. More... | |
getButtonType () | |
setButtonType ($button_type) | |
render () | |
Render HTML. More... | |
Public Member Functions inherited from ilButtonBase | |
__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 () |
static | getValidFormTargets () |
static | getValidFormMethods () |
static | getValidFormEncTypes () |
static | getValidButtonTypes () |
Static Public Member Functions inherited from ilButtonBase | |
static | getInstance () |
Factory. More... | |
Data Fields | |
const | BUTTON_TYPE_BUTTON = 'button' |
const | BUTTON_TYPE_SUBMIT = 'submit' |
const | BUTTON_TYPE_RESET = 'reset' |
const | FORM_ENC_TYPE_APPLICATION = 'application/x-www-form-urlencoded' |
const | FORM_ENC_TYPE_MULTI_PART = 'multipart/form-data' |
const | FORM_ENC_TYPE_PLAIN = 'text/plain' |
const | FORM_METHOD_POST = 'POST' |
const | FORM_METHOD_GET = 'GET' |
const | FORM_TARGET_SELF = '_self' |
const | FORM_TARGET_BLANK = '_blank' |
const | FORM_TARGET_PARENT = '_parent' |
const | FORM_TARGET_TOP = '_top' |
Data Fields inherited from ilButtonBase | |
const | TYPE_SUBMIT = 1 |
const | TYPE_LINK = 2 |
const | TYPE_SPLIT = 3 |
const | TYPE_BUTTON = 4 |
Protected Attributes | |
$button_type = self::BUTTON_TYPE_SUBMIT | |
$name = null | |
$value = null | |
$form = null | |
$form_action = null | |
$form_enc_type = null | |
$form_method = null | |
$form_target = null | |
$form_novalidate = null | |
Protected Attributes inherited from ilButtonBase | |
$lng | |
$type | |
$id | |
$caption | |
$caption_is_lng_id | |
$primary | |
$omit_prevent_double_submission | |
$onclick | |
$acc_key | |
$disabled | |
$css = array() | |
$apply_default_css = true | |
Additional Inherited Members | |
Protected Member Functions inherited from ilButtonBase | |
__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... | |
Definition at line 11 of file class.ilButton.php.
ilButton::getButtonType | ( | ) |
Definition at line 420 of file class.ilButton.php.
References $button_type.
Referenced by render().
ilButton::getForm | ( | ) |
Definition at line 337 of file class.ilButton.php.
References $form.
Referenced by render().
ilButton::getFormAction | ( | ) |
Definition at line 310 of file class.ilButton.php.
References $form_action.
Referenced by render().
ilButton::getFormEncType | ( | ) |
Definition at line 281 of file class.ilButton.php.
References $form_enc_type.
Referenced by render().
ilButton::getFormMethod | ( | ) |
Definition at line 252 of file class.ilButton.php.
References $form_method.
Referenced by render().
ilButton::getFormTarget | ( | ) |
Definition at line 220 of file class.ilButton.php.
References $form_target.
Referenced by render().
|
static |
Definition at line 137 of file class.ilButton.php.
Referenced by ilMailFormGUI\showForm(), and ilMarkSchemaGUI\showMarkSchema().
ilButton::getName | ( | ) |
Definition at line 393 of file class.ilButton.php.
References $name.
Referenced by ilJsLinkButton\render(), and render().
|
static |
Definition at line 181 of file class.ilButton.php.
|
static |
Definition at line 169 of file class.ilButton.php.
|
static |
Definition at line 158 of file class.ilButton.php.
|
static |
Definition at line 145 of file class.ilButton.php.
ilButton::getValue | ( | ) |
Definition at line 367 of file class.ilButton.php.
References $value.
Referenced by render().
ilButton::isFormNovalidate | ( | ) |
Definition at line 193 of file class.ilButton.php.
References $form_novalidate.
Referenced by render().
ilButton::render | ( | ) |
Render HTML.
Definition at line 449 of file class.ilButton.php.
References getButtonType(), ilButtonBase\getCaption(), getForm(), getFormAction(), getFormEncType(), getFormMethod(), getFormTarget(), getName(), getValue(), isFormNovalidate(), ilButtonBase\prepareRender(), and ilButtonBase\renderAttributes().
ilButton::setButtonType | ( | $button_type | ) |
string | $button_type |
InvalidArgumentException |
Definition at line 430 of file class.ilButton.php.
References $button_type.
ilButton::setForm | ( | $form | ) |
The form element that the button is associated with (its form owner).
The value of the attribute must be the id attribute of a <form> element in the same document. If this attribute is not specified, the <button> element must be a descendant of a form element. This attribute enables you to place <button> elements anywhere within a document, not just as descendants of their <form> elements.
string |
InvalidArgumentException |
Definition at line 352 of file class.ilButton.php.
References $form.
ilButton::setFormAction | ( | $form_action | ) |
The URI of a program that processes the information submitted by the button.
If specified, it overrides the action attribute of the button's form owner.
string | $form_action |
InvalidArgumentException |
Definition at line 322 of file class.ilButton.php.
References $form_action.
ilButton::setFormEncType | ( | $form_enc_type | ) |
If this attribute is specified, it overrides the enctype attribute of the button's form owner.
string | $form_enc_type |
InvalidArgumentException |
Definition at line 292 of file class.ilButton.php.
References $form_enc_type.
ilButton::setFormMethod | ( | $form_method | ) |
If the button is a submit button, this attribute specifies the HTTP method that the browser uses to submit the form.
string | $form_method |
InvalidArgumentException |
Definition at line 263 of file class.ilButton.php.
References $form_method.
ilButton::setFormNovalidate | ( | $form_novalidate | ) |
If the button is a submit button, this Boolean attribute specifies that the form is not to be validated when it is submitted.
If this attribute is specified, it overrides the novalidate attribute of the button's form owner.
boolean | $form_novalidate |
InvalidArgumentException |
Definition at line 205 of file class.ilButton.php.
References $form_novalidate.
ilButton::setFormTarget | ( | $form_target | ) |
If the button is a submit button, this attribute is a name or keyword indicating where to display the response that is received after submitting the form.
This is a name of, or keyword for, a browsing context (for example, tab, window, or inline frame). If this attribute is specified, it overrides the target attribute of the button's form owner.
string | $form_target |
InvalidArgumentException |
Definition at line 234 of file class.ilButton.php.
References $form_target.
ilButton::setName | ( | $name, | |
$is_command = true |
|||
) |
The name of the button, which is submitted with the form data.
string | $name | |
bool | $is_command | if true, a cmd[] is wrapped around the passed name |
InvalidArgumentException |
Definition at line 405 of file class.ilButton.php.
References $name.
ilButton::setValue | ( | $value | ) |
The initial value of the button.
string | $value |
InvalidArgumentException |
Definition at line 378 of file class.ilButton.php.
References $value.
|
protected |
Definition at line 92 of file class.ilButton.php.
Referenced by getButtonType(), and setButtonType().
|
protected |
Definition at line 107 of file class.ilButton.php.
|
protected |
Definition at line 112 of file class.ilButton.php.
Referenced by getFormAction(), and setFormAction().
|
protected |
Definition at line 117 of file class.ilButton.php.
Referenced by getFormEncType(), and setFormEncType().
|
protected |
Definition at line 122 of file class.ilButton.php.
Referenced by getFormMethod(), and setFormMethod().
|
protected |
Definition at line 132 of file class.ilButton.php.
Referenced by isFormNovalidate(), and setFormNovalidate().
|
protected |
Definition at line 127 of file class.ilButton.php.
Referenced by getFormTarget(), and setFormTarget().
|
protected |
Definition at line 97 of file class.ilButton.php.
|
protected |
Definition at line 102 of file class.ilButton.php.
Referenced by getValue(), and setValue().
const ilButton::BUTTON_TYPE_BUTTON = 'button' |
Definition at line 18 of file class.ilButton.php.
const ilButton::BUTTON_TYPE_RESET = 'reset' |
Definition at line 31 of file class.ilButton.php.
const ilButton::BUTTON_TYPE_SUBMIT = 'submit' |
Definition at line 25 of file class.ilButton.php.
Referenced by ilMailFormGUI\showForm(), and ilMarkSchemaGUI\showMarkSchema().
const ilButton::FORM_ENC_TYPE_APPLICATION = 'application/x-www-form-urlencoded' |
Definition at line 37 of file class.ilButton.php.
const ilButton::FORM_ENC_TYPE_MULTI_PART = 'multipart/form-data' |
Definition at line 43 of file class.ilButton.php.
const ilButton::FORM_ENC_TYPE_PLAIN = 'text/plain' |
Definition at line 48 of file class.ilButton.php.
const ilButton::FORM_METHOD_GET = 'GET' |
Definition at line 58 of file class.ilButton.php.
const ilButton::FORM_METHOD_POST = 'POST' |
Definition at line 53 of file class.ilButton.php.
const ilButton::FORM_TARGET_BLANK = '_blank' |
Definition at line 71 of file class.ilButton.php.
Referenced by ilTestSubmissionReviewGUI\buildToolbar().
const ilButton::FORM_TARGET_PARENT = '_parent' |
Definition at line 78 of file class.ilButton.php.
const ilButton::FORM_TARGET_SELF = '_self' |
Definition at line 65 of file class.ilButton.php.
const ilButton::FORM_TARGET_TOP = '_top' |
Definition at line 86 of file class.ilButton.php.