MediaWiki
REL1_22
|
Radio checkbox fields. More...
Public Member Functions | |
formatOptions ($options, $value) | |
getInputHTML ($value) | |
This returns a block of all the radio options, in one cell. | |
validate ($value, $alldata) | |
Override this function to add specific validation checks on the field input. | |
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? |
Radio checkbox fields.
Definition at line 2663 of file HTMLForm.php.
HTMLRadioField::formatOptions | ( | $ | options, |
$ | value | ||
) |
Definition at line 2697 of file HTMLForm.php.
References $html.
HTMLRadioField::getInputHTML | ( | $ | value | ) |
This returns a block of all the radio options, in one cell.
$value | String |
Reimplemented from HTMLFormField.
Definition at line 2691 of file HTMLForm.php.
HTMLRadioField::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 2728 of file HTMLForm.php.
HTMLRadioField::validate | ( | $ | value, |
$ | alldata | ||
) |
Override this function to add specific validation checks on the field input.
Don't forget to call parent::validate() to ensure that the user-defined callback mValidationCallback is still run
string | $value | the value the field was submitted with |
array | $alldata | the data collected from the form |
Reimplemented from HTMLFormField.
Definition at line 2665 of file HTMLForm.php.
References HTMLFormField\flattenOptions(), and HTMLFormField\msg().