19 parent::__construct( $params );
21 $this->mAllValue = array_key_exists(
'all', $params )
24 $this->mUserLang = array_key_exists(
'in-user-lang', $params )
25 ? $params[
'in-user-lang']
34 return Html::namespaceSelector(
37 'all' => $this->mAllValue,
38 'in-user-lang' => $this->mUserLang,
40 'name' => $this->mName,
42 'class' =>
'namespaceselector',
54 'name' => $this->mName,
56 'includeAllValue' => $this->mAllValue,
57 'userLang' => $this->mUserLang,
67 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....