X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fhtmlform%2Ffields%2FHTMLSelectAndOtherField.php;h=86e8e756558613735ef62d875ed841716ca0b03e;hp=e75c2b2507d2e8a0f08711c67bf8edafa1c5f7e9;hb=7874fc4bec845ad92960b07e969c65f3c3fe74f2;hpb=ba88f88038290f4efe11c07573f0440930c9e84a diff --git a/includes/htmlform/fields/HTMLSelectAndOtherField.php b/includes/htmlform/fields/HTMLSelectAndOtherField.php index e75c2b2507..86e8e75655 100644 --- a/includes/htmlform/fields/HTMLSelectAndOtherField.php +++ b/includes/htmlform/fields/HTMLSelectAndOtherField.php @@ -11,7 +11,7 @@ * @todo FIXME: If made 'required', only the text field should be compulsory. */ class HTMLSelectAndOtherField extends HTMLSelectField { - function __construct( $params ) { + public function __construct( $params ) { if ( array_key_exists( 'other', $params ) ) { // Do nothing } elseif ( array_key_exists( 'other-message', $params ) ) { @@ -31,10 +31,9 @@ class HTMLSelectAndOtherField extends HTMLSelectField { $this->mOptions = [ $params['other'] => 'other' ] + $this->mOptions; } $this->mFlatOptions = self::flattenOptions( $this->getOptions() ); - } - function getInputHTML( $value ) { + public function getInputHTML( $value ) { $select = parent::getInputHTML( $value[1] ); $textAttribs = [ @@ -64,7 +63,7 @@ class HTMLSelectAndOtherField extends HTMLSelectField { return "$select
\n$textbox"; } - function getInputOOUI( $value ) { + public function getInputOOUI( $value ) { return false; } @@ -73,7 +72,7 @@ class HTMLSelectAndOtherField extends HTMLSelectField { * * @return array("","