MediaWiki  1.28.0
MediaWiki\Widget\NamespaceInputWidget Class Reference

Namespace input widget. More...

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

Public Member Functions

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

Protected Member Functions

 getJavaScriptClassName ()
 
 getNamespaceDropdownOptions (array $config)
 

Protected Attributes

 $includeAllValue = null
 

Detailed Description

Namespace input widget.

Displays a dropdown box with the choice of available namespaces.

Definition at line 13 of file NamespaceInputWidget.php.

Constructor & Destructor Documentation

MediaWiki\Widget\NamespaceInputWidget::__construct ( array  $config = [])
Parameters
array$configConfiguration options
string$config,['includeAllValue']If specified, add a "all namespaces" option to the namespace dropdown, and use this as the input value for it
number[]$config['exclude'] List of namespace numbers to exclude from the selector

Definition at line 23 of file NamespaceInputWidget.php.

References MediaWiki\$config, and MediaWiki\Widget\NamespaceInputWidget\getNamespaceDropdownOptions().

Member Function Documentation

MediaWiki\Widget\NamespaceInputWidget::getConfig ( $config)
MediaWiki\Widget\NamespaceInputWidget::getJavaScriptClassName ( )
protected

Definition at line 56 of file NamespaceInputWidget.php.

MediaWiki\Widget\NamespaceInputWidget::getNamespaceDropdownOptions ( array  $config)
protected

Member Data Documentation

MediaWiki\Widget\NamespaceInputWidget::$includeAllValue = null
protected

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