* and should be used instead.
*/
class HTMLSelectOrOtherField extends HTMLTextField {
- function __construct( $params ) {
+ public function __construct( $params ) {
parent::__construct( $params );
$this->getOptions();
if ( !in_array( 'other', $this->mOptions, true ) ) {
// Have 'other' always as first element
$this->mOptions = [ $msg => 'other' ] + $this->mOptions;
}
-
}
- function getInputHTML( $value ) {
+ public function getInputHTML( $value ) {
$valInSelect = false;
if ( $value !== false ) {
return "$select<br />\n$textbox";
}
- function getInputOOUI( $value ) {
+ public function getInputOOUI( $value ) {
return false;
}
*
* @return string
*/
- function loadDataFromRequest( $request ) {
+ public function loadDataFromRequest( $request ) {
if ( $request->getCheck( $this->mName ) ) {
$val = $request->getText( $this->mName );