MediaWiki
REL1_24
|
Adds a generic button inline to the form. More...
Public Member Functions | |
__construct ($info) | |
Initialise the object. | |
getInputHTML ($value) | |
This function must be implemented to return the HTML to generate the input object itself. | |
validate ($value, $alldata) | |
Button cannot be invalid. | |
Protected Member Functions | |
needsLabel () | |
Should this field have a label, or is there no input element with the appropriate id for the label to point to? | |
Protected Attributes | |
$buttonType = 'button' |
Adds a generic button inline to the form.
Does not do anything, you must add click handling code in JavaScript. Use a HTMLSubmitField if you merely wish to add a submit button to a form.
Definition at line 10 of file HTMLButtonField.php.
HTMLButtonField::__construct | ( | $ | params | ) |
Initialise the object.
array | $params | Associative Array. See HTMLForm doc for syntax. |
MWException |
Reimplemented from HTMLFormField.
Definition at line 13 of file HTMLButtonField.php.
HTMLButtonField::getInputHTML | ( | $ | value | ) |
This function must be implemented to return the HTML to generate the input object itself.
It should not implement the surrounding table cells/rows, or labels/help messages.
string | $value | The value to set the input to; eg a default text for a text input. |
Reimplemented from HTMLFormField.
Definition at line 18 of file HTMLButtonField.php.
References $value, array(), HTMLFormField\getAttributes(), and Html\input().
HTMLButtonField::needsLabel | ( | ) | [protected] |
Should this field have a label, or is there no input element with the appropriate id for the label to point to?
Reimplemented from HTMLFormField.
Definition at line 27 of file HTMLButtonField.php.
HTMLButtonField::validate | ( | $ | value, |
$ | alldata | ||
) |
Button cannot be invalid.
string | $value | |
array | $alldata |
Reimplemented from HTMLFormField.
Definition at line 39 of file HTMLButtonField.php.
HTMLButtonField::$buttonType = 'button' [protected] |
Reimplemented in HTMLSubmitField.
Definition at line 11 of file HTMLButtonField.php.