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
|
|
|
|
|
|
*/
|
|
|
|
|
|
public function __construct( array $config = array() ) {
|
|
|
|
|
|
// Parent constructor
|
2015-08-11 19:13:56 +00:00
|
|
|
|
parent::__construct( array_merge( array( 'infusable' => true ), $config ) );
|
2015-07-17 22:04:02 +00:00
|
|
|
|
|
|
|
|
|
|
// Initialization
|
|
|
|
|
|
$this->addClasses( array( 'mw-widget-userInputWidget' ) );
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
protected function getJavaScriptClassName() {
|
|
|
|
|
|
return 'mw.widgets.UserInputWidget';
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|