Merge "Switched upload chunk status store to the main object stash"
[lhc/web/wiklou.git] / includes / widget / UserInputWidget.php
1 <?php
2 /**
3 * MediaWiki Widgets \96 UserInputWidget class.
4 *
5 * @copyright 2011-2015 MediaWiki Widgets Team and others; see AUTHORS.txt
6 * @license The MIT License (MIT); see LICENSE.txt
7 */
8 namespace MediaWiki\Widget;
9
10 use OOUI\TextInputWidget;
11
12 /**
13 * User input widget.
14 */
15 class UserInputWidget extends TextInputWidget {
16 /**
17 * @param array $config Configuration options
18 */
19 public function __construct( array $config = array() ) {
20 // Parent constructor
21 parent::__construct( array_merge( $config, array( 'infusable' => true ) ) );
22
23 // Initialization
24 $this->addClasses( array( 'mw-widget-userInputWidget' ) );
25 }
26
27 protected function getJavaScriptClassName() {
28 return 'mw.widgets.UserInputWidget';
29 }
30 }