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

array $input
 
string null $inputName
 
string null $inputPlaceholder
 
array $selectedArray
 
int null $tagLimit
 

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
  • string $config['name'] Name attribute (used in forms)
  • string $config['placeholder'] Placeholder message for input
  • array $config['input'] Config options for the input widget
  • int $config['tagLimit'] Maximum number of selected items

Definition at line 34 of file TagMultiselectWidget.php.

References MediaWiki\$config.

Member Function Documentation

◆ getConfig()

Member Data Documentation

◆ $input

array MediaWiki\Widget\TagMultiselectWidget::$input
protected

◆ $inputName

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

◆ $inputPlaceholder

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

◆ $selectedArray

array MediaWiki\Widget\TagMultiselectWidget::$selectedArray
protected

◆ $tagLimit

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

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