MediaWiki  1.29.1
MediaWiki\Widget\ComplexNamespaceInputWidget Class Reference

Namespace input widget. More...

Inheritance diagram for MediaWiki\Widget\ComplexNamespaceInputWidget:
Collaboration diagram for MediaWiki\Widget\ComplexNamespaceInputWidget:

Public Member Functions

 __construct (array $config=[])
 getConfig (&$config)

Protected Member Functions

 getJavaScriptClassName ()

Protected Attributes

 $associated = null
 $associatedLabel = null
 $invert = null
 $invertLabel = null

Detailed Description

Namespace input widget.

Displays a dropdown box with the choice of available namespaces, plus two checkboxes to include associated namespace or to invert selection.

Definition at line 14 of file ComplexNamespaceInputWidget.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Widget\ComplexNamespaceInputWidget::__construct ( array  $config = [])
array$configConfiguration options
array$config,['namespace']Configuration for the NamespaceInputWidget dropdown with list of namespaces
string$config,['namespace']['includeAllValue']If specified, add an "all namespaces" option to the dropdown, and use this as the input value for it
array | null$config,['invert']Configuration for the "invert selection" CheckboxInputWidget. If null, the checkbox will not be generated.
array | null$config,['associated']Configuration for the "include associated namespace" CheckboxInputWidget. If null, the checkbox will not be generated.
array$config,['invertLabel']Configuration for the FieldLayout with label wrapping the "invert selection" checkbox
string$config,['invertLabel']['label']Label text for the label
array$config,['associatedLabel']Configuration for the FieldLayout with label wrapping the "include associated namespace" checkbox
string$config,['associatedLabel']['label']Label text for the label

Definition at line 40 of file ComplexNamespaceInputWidget.php.

References MediaWiki\Widget\ComplexNamespaceInputWidget\$config.

Member Function Documentation

◆ getConfig()

MediaWiki\Widget\ComplexNamespaceInputWidget::getConfig ( $config)

◆ getJavaScriptClassName()

MediaWiki\Widget\ComplexNamespaceInputWidget::getJavaScriptClassName ( )

Definition at line 96 of file ComplexNamespaceInputWidget.php.

Member Data Documentation

◆ $associated

MediaWiki\Widget\ComplexNamespaceInputWidget::$associated = null

Definition at line 18 of file ComplexNamespaceInputWidget.php.

◆ $associatedLabel

MediaWiki\Widget\ComplexNamespaceInputWidget::$associatedLabel = null

Definition at line 19 of file ComplexNamespaceInputWidget.php.

◆ $config


◆ $invert

MediaWiki\Widget\ComplexNamespaceInputWidget::$invert = null

Definition at line 20 of file ComplexNamespaceInputWidget.php.

◆ $invertLabel

MediaWiki\Widget\ComplexNamespaceInputWidget::$invertLabel = null

Definition at line 21 of file ComplexNamespaceInputWidget.php.

◆ $namespace


Definition at line 17 of file ComplexNamespaceInputWidget.php.

The documentation for this class was generated from the following file: