MediaWiki  master
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

MediaWiki\Widget\UsersMultiselectWidget::__construct ( array  $config = [])
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

MediaWiki\Widget\UsersMultiselectWidget::getJavaScriptClassName ( )

Definition at line 49 of file UsersMultiselectWidget.php.

Member Data Documentation

MediaWiki\Widget\UsersMultiselectWidget::$inputName = null
MediaWiki\Widget\UsersMultiselectWidget::$inputPlaceholder = null
MediaWiki\Widget\UsersMultiselectWidget::$usersArray = []

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