3 * Wrapper for Html::namespaceSelector to use in HTMLForm
5 class HTMLSelectNamespace
extends HTMLFormField
{
6 public function __construct( $params ) {
7 parent
::__construct( $params );
8 $this->mAllValue
= isset( $this->mParams
['all'] ) ?
$this->mParams
['all'] : 'all';
11 function getInputHTML( $value ) {
12 return Html
::namespaceSelector(
15 'all' => $this->mAllValue
17 'name' => $this->mName
,
19 'class' => 'namespaceselector',
24 public function getInputOOUI( $value ) {
25 return new MediaWiki\Widget\
NamespaceInputWidget( array(
26 'valueNamespace' => $value,
27 'nameNamespace' => $this->mName
,
29 'includeAllValue' => $this->mAllValue
,
30 // Disable additional checkboxes
32 'nameAssociated' => null,