MediaWiki
REL1_22
|
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 2840 of file HTMLForm.php.
HTMLButtonField::__construct | ( | $ | params | ) |
Initialise the object.
array | $params | Associative Array. See HTMLForm doc for syntax. |
MWException |
Reimplemented from HTMLFormField.
Definition at line 2843 of file HTMLForm.php.
Referenced by getInputHTML().
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 2848 of file HTMLForm.php.
References __construct().
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 2866 of file HTMLForm.php.
HTMLButtonField::validate | ( | $ | value, |
$ | alldata | ||
) |
Button cannot be invalid.
$value | String |
$alldata | Array |
Reimplemented from HTMLFormField.
Definition at line 2876 of file HTMLForm.php.
HTMLButtonField::$buttonType = 'button' [protected] |
Reimplemented in HTMLSubmitField.
Definition at line 2841 of file HTMLForm.php.