2015-07-17 22:04:02 +00:00
|
|
|
|
<?php
|
|
|
|
|
|
/**
|
2015-07-22 00:01:16 +00:00
|
|
|
|
* MediaWiki Widgets – UserInputWidget class.
|
2015-07-17 22:04:02 +00:00
|
|
|
|
*
|
|
|
|
|
|
* @copyright 2011-2015 MediaWiki Widgets Team and others; see AUTHORS.txt
|
|
|
|
|
|
* @license The MIT License (MIT); see LICENSE.txt
|
|
|
|
|
|
*/
|
|
|
|
|
|
namespace MediaWiki\Widget;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* User input widget.
|
|
|
|
|
|
*/
|
2015-07-22 00:01:16 +00:00
|
|
|
|
class UserInputWidget extends \OOUI\TextInputWidget {
|
|
|
|
|
|
|
2015-07-17 22:04:02 +00:00
|
|
|
|
/**
|
|
|
|
|
|
* @param array $config Configuration options
|
|
|
|
|
|
*/
|
2016-02-17 09:09:32 +00:00
|
|
|
|
public function __construct( array $config = [] ) {
|
2015-07-17 22:04:02 +00:00
|
|
|
|
// Parent constructor
|
2016-07-26 11:56:47 +00:00
|
|
|
|
parent::__construct( $config );
|
2015-07-17 22:04:02 +00:00
|
|
|
|
|
|
|
|
|
|
// Initialization
|
2016-02-17 09:09:32 +00:00
|
|
|
|
$this->addClasses( [ 'mw-widget-userInputWidget' ] );
|
2015-07-17 22:04:02 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
protected function getJavaScriptClassName() {
|
|
|
|
|
|
return 'mw.widgets.UserInputWidget';
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|