MediaWiki  master
MediaWiki\Widget\TagMultiselectWidget Class Reference

Abstract base class for widgets to select multiple users, titles, namespaces, etc. More...

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

Public Member Functions

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

Protected Attributes

 $inputName = null
 
 $inputPlaceholder = null
 
 $selectedArray = []
 
 $tagLimit = null
 

Detailed Description

Abstract base class for widgets to select multiple users, titles, namespaces, etc.

Note
2017 MediaWiki Widgets Team and others; see AUTHORS.txt
MIT

Definition at line 14 of file TagMultiselectWidget.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Widget\TagMultiselectWidget::__construct ( array  $config = [])
Parameters
array$configConfiguration options
  • array $config['default'] Array of items to use as preset data
  • array $config['name'] Name attribute (used in forms)
  • array $config['placeholder'] Placeholder message for input
  • array $config['input'] Config options for the input widget
  • number $config['tagLimit'] Maximum number of selected items

Definition at line 29 of file TagMultiselectWidget.php.

References MediaWiki\$config.

Member Function Documentation

◆ getConfig()

Member Data Documentation

◆ $inputName

MediaWiki\Widget\TagMultiselectWidget::$inputName = null
protected

◆ $inputPlaceholder

MediaWiki\Widget\TagMultiselectWidget::$inputPlaceholder = null
protected

◆ $selectedArray

MediaWiki\Widget\TagMultiselectWidget::$selectedArray = []
protected

◆ $tagLimit

MediaWiki\Widget\TagMultiselectWidget::$tagLimit = null
protected

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