MediaWiki REL1_31
MediaWiki\Widget\UsersMultiselectWidget Class Reference

Widget to select multiple users. More...

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

Public Member Functions

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

Protected Member Functions

 getJavaScriptClassName ()
 

Protected Attributes

 $inputName = null
 
 $inputPlaceholder = null
 
 $usersArray = []
 

Detailed Description

Widget to select multiple users.

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

Definition at line 13 of file UsersMultiselectWidget.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Widget\UsersMultiselectWidget::__construct ( array $config = [])
Parameters
array$configConfiguration options
  • array $config['users'] Array of usernames to use as preset data
  • array $config['placeholder'] Placeholder message for input
  • array $config['name'] Name attribute (used in forms)

Definition at line 25 of file UsersMultiselectWidget.php.

Member Function Documentation

◆ getConfig()

◆ getJavaScriptClassName()

MediaWiki\Widget\UsersMultiselectWidget::getJavaScriptClassName ( )
protected

Definition at line 47 of file UsersMultiselectWidget.php.

Member Data Documentation

◆ $inputName

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

◆ $inputPlaceholder

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

◆ $usersArray

MediaWiki\Widget\UsersMultiselectWidget::$usersArray = []
protected

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