22 parent::__construct( $params );
24 $this->mAllValue = array_key_exists(
'all', $params )
27 $this->mUserLang = array_key_exists(
'in-user-lang', $params )
28 ? $params[
'in-user-lang']
37 return Html::namespaceSelector(
40 'all' => $this->mAllValue,
41 'in-user-lang' => $this->mUserLang,
43 'name' => $this->mName,
45 'class' =>
'namespaceselector',
57 'name' => $this->mName,
59 'includeAllValue' => $this->mAllValue,
60 'userLang' => $this->mUserLang,
70 return [
'mediawiki.widgets' ];
Wrapper for Html::namespaceSelector to use in HTMLForm.
getInputOOUI( $value)
Same as getInputHTML, but returns an OOUI object.Defaults to false, which getOOUI will interpret as "...
shouldInfuseOOUI()
Whether the field should be automatically infused.Note that all OOUI HTMLForm fields are infusable (y...
getOOUIModules()
Get the list of extra ResourceLoader modules which must be loaded client-side before it's possible to...
getInputHTML( $value)
This function must be implemented to return the HTML to generate the input object itself....