getOptions() ); if ( in_array( strval( $value ), $validOptions, true ) ) { return true; } else { return $this->msg( 'htmlform-select-badoption' )->parse(); } } function getInputHTML( $value ) { $select = new XmlSelect( $this->mName, $this->mID, strval( $value ) ); if ( !empty( $this->mParams['disabled'] ) ) { $select->setAttribute( 'disabled', 'disabled' ); } $allowedParams = array( 'tabindex', 'size' ); $customParams = $this->getAttributes( $allowedParams ); foreach ( $customParams as $name => $value ) { $select->setAttribute( $name, $value ); } if ( $this->mClass !== '' ) { $select->setAttribute( 'class', $this->mClass ); } $select->addOptions( $this->getOptions() ); return $select->getHTML(); } }