Namespace input widget.
More...
Inherits DropdownInputWidget.
Namespace input widget.
Displays a dropdown box with the choice of available namespaces.
- Note
- 2011-2015 MediaWiki Widgets Team and others; see AUTHORS.txt
-
MIT
Definition at line 15 of file NamespaceInputWidget.php.
◆ __construct()
| MediaWiki\Widget\NamespaceInputWidget::__construct |
( |
array | $config = [] | ) |
|
- Parameters
-
| array | $config | Configuration options
- string $config['includeAllValue'] If specified, add a "all namespaces" option to the namespace dropdown, and use this as the input value for it
- bool $config['userLang'] Display namespaces in user language
- int[] $config['exclude'] List of namespace numbers to exclude from the selector
- int[]|null $config['include'] List of namespace numbers to only include in the selector, or null to not apply this filter.
|
Definition at line 34 of file NamespaceInputWidget.php.
References MediaWiki\Widget\NamespaceInputWidget\getNamespaceDropdownOptions().
◆ getConfig()
| MediaWiki\Widget\NamespaceInputWidget::getConfig |
( |
& | $config | ) |
|
◆ getJavaScriptClassName()
| MediaWiki\Widget\NamespaceInputWidget::getJavaScriptClassName |
( |
| ) |
|
|
protected |
◆ getNamespaceDropdownOptions()
| MediaWiki\Widget\NamespaceInputWidget::getNamespaceDropdownOptions |
( |
array | $config | ) |
|
|
protected |
◆ $exclude
| int [] MediaWiki\Widget\NamespaceInputWidget::$exclude |
|
protected |
◆ $include
| int [] null MediaWiki\Widget\NamespaceInputWidget::$include |
|
protected |
◆ $includeAllValue
| string MediaWiki\Widget\NamespaceInputWidget::$includeAllValue |
|
protected |
◆ $userLang
| bool MediaWiki\Widget\NamespaceInputWidget::$userLang |
|
protected |
The documentation for this class was generated from the following file: