Merge "Remove not used private member variable mParserWarnings from OutputPage"
[mediawiki.git] / includes / widget / UserInputWidget.php
blob1e2d3d618a0dec52c5a09d5d449a57e7a90a1097
1 <?php
2 /**
3 * MediaWiki Widgets – UserInputWidget class.
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;
10 /**
11 * User input widget.
13 class UserInputWidget extends \OOUI\TextInputWidget {
15 /**
16 * @param array $config Configuration options
18 public function __construct( array $config = array() ) {
19 // Parent constructor
20 parent::__construct( array_merge( array( 'infusable' => true ), $config ) );
22 // Initialization
23 $this->addClasses( array( 'mw-widget-userInputWidget' ) );
26 protected function getJavaScriptClassName() {
27 return 'mw.widgets.UserInputWidget';