MediaWiki  1.30.0
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.

Definition at line 15 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 27 of file UsersMultiselectWidget.php.

References MediaWiki\$config.

Member Function Documentation

◆ getConfig()

◆ getJavaScriptClassName()

MediaWiki\Widget\UsersMultiselectWidget::getJavaScriptClassName ( )
protected

Definition at line 50 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: