ILIAS
release_8 Revision v8.19
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Public Member Functions | |
setTarget (string $a_value) | |
getTarget () | |
render () | |
![]() | |
isFormNovalidate () | |
setFormNovalidate (bool $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 (string $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 (string $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 (string $form_enc_type) | |
If this attribute is specified, it overrides the enctype attribute of the button's form owner. More... | |
getFormAction () | |
setFormAction (string $form_action) | |
The URI of a program that processes the information submitted by the button. More... | |
getForm () | |
setForm (string $form) | |
The form element that the button is associated with (its form owner). More... | |
getValue () | |
setValue (string $value) | |
The initial value of the button. More... | |
getName () | |
setName (string $name, bool $is_command=true) | |
The name of the button, which is submitted with the form data. More... | |
getButtonType () | |
setButtonType (string $button_type) | |
render () | |
![]() | |
__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... | |
Static Public Member Functions | |
static | getInstance () |
![]() | |
static | getInstance () |
static | getValidFormTargets () |
static | getValidFormMethods () |
static | getValidFormEncTypes () |
static | getValidButtonTypes () |
![]() | |
static | getInstance () |
Protected Member Functions | |
renderCaption () | |
![]() | |
__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 | |
string | $target |
![]() | |
string | $button_type = self::BUTTON_TYPE_SUBMIT |
string | $name = null |
string | $value = null |
string | $form = null |
string | $form_action = null |
string | $form_enc_type = null |
string | $form_method = null |
string | $form_target = null |
bool | $form_novalidate = false |
![]() | |
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 |
Additional Inherited Members | |
![]() | |
const | BUTTON_TYPE_BUTTON = 'button' |
The button has no default behavior. More... | |
const | BUTTON_TYPE_SUBMIT = 'submit' |
The button submits the form data to the server. More... | |
const | BUTTON_TYPE_RESET = 'reset' |
The button resets all the controls to their initial values. More... | |
const | FORM_ENC_TYPE_APPLICATION = 'application/x-www-form-urlencoded' |
The default value if the attribute is not specified. More... | |
const | FORM_ENC_TYPE_MULTI_PART = 'multipart/form-data' |
Use this value if you are using an <input> element with the type attribute set to file. More... | |
const | FORM_ENC_TYPE_PLAIN = 'text/plain' |
const | FORM_METHOD_POST = 'POST' |
const | FORM_METHOD_GET = 'GET' |
const | FORM_TARGET_SELF = '_self' |
Load the response into the same browsing context as the current one. More... | |
const | FORM_TARGET_BLANK = '_blank' |
Load the response into a new unnamed browsing context. More... | |
const | FORM_TARGET_PARENT = '_parent' |
Load the response into the parent browsing context of the current one. More... | |
const | FORM_TARGET_TOP = '_top' |
Load the response into the top-level browsing context (that is, the browsing context that is an ancestor of the current one, and has no parent). More... | |
![]() | |
const | TYPE_SUBMIT = 1 |
const | TYPE_LINK = 2 |
const | TYPE_SPLIT = 3 |
const | TYPE_BUTTON = 4 |
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 Link Button GUI
Definition at line 24 of file class.ilJsLinkButton.php.
|
static |
Definition at line 28 of file class.ilJsLinkButton.php.
Referenced by ilAssLongmenuCorrectionsInputGUI\buildAnswersModal(), and assClozeTestGUI\populateQuestionSpecificFormPart().
ilJsLinkButton::getTarget | ( | ) |
Definition at line 38 of file class.ilJsLinkButton.php.
References $target.
Referenced by render().
ilJsLinkButton::render | ( | ) |
Definition at line 48 of file class.ilJsLinkButton.php.
References ilButton\getName(), ilButtonBase\getOnClick(), getTarget(), ilButtonBase\prepareRender(), ilButtonBase\renderAttributes(), and renderCaption().
|
protected |
Definition at line 43 of file class.ilJsLinkButton.php.
References ilButtonBase\getCaption().
Referenced by render().
ilJsLinkButton::setTarget | ( | string | $a_value | ) |
Definition at line 33 of file class.ilJsLinkButton.php.
|
protected |
Definition at line 26 of file class.ilJsLinkButton.php.
Referenced by getTarget().