MediaWiki  1.30.0
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
 
 $config
 
 $invert = null
 
 $invertLabel = null
 
 $namespace
 

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 = [])
Parameters
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 ( )
protected

Definition at line 96 of file ComplexNamespaceInputWidget.php.

Member Data Documentation

◆ $associated

MediaWiki\Widget\ComplexNamespaceInputWidget::$associated = null
protected

Definition at line 18 of file ComplexNamespaceInputWidget.php.

◆ $associatedLabel

MediaWiki\Widget\ComplexNamespaceInputWidget::$associatedLabel = null
protected

Definition at line 19 of file ComplexNamespaceInputWidget.php.

◆ $config

MediaWiki\Widget\ComplexNamespaceInputWidget::$config
protected

◆ $invert

MediaWiki\Widget\ComplexNamespaceInputWidget::$invert = null
protected

Definition at line 20 of file ComplexNamespaceInputWidget.php.

◆ $invertLabel

MediaWiki\Widget\ComplexNamespaceInputWidget::$invertLabel = null
protected

Definition at line 21 of file ComplexNamespaceInputWidget.php.

◆ $namespace

MediaWiki\Widget\ComplexNamespaceInputWidget::$namespace
protected

Definition at line 17 of file ComplexNamespaceInputWidget.php.


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