Per wikitech-l consensus: https://lists.wikimedia.org/pipermail/wikitech-l/2016-February/084821.html Notes: * Disabled CallTimePassByReference due to false positives (T127163) Change-Id: I2c8ce713ce6600a0bb7bf67537c87044c7a45c4b
29 lines
685 B
PHP
29 lines
685 B
PHP
<?php
|
||
/**
|
||
* MediaWiki Widgets – UserInputWidget class.
|
||
*
|
||
* @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.
|
||
*/
|
||
class UserInputWidget extends \OOUI\TextInputWidget {
|
||
|
||
/**
|
||
* @param array $config Configuration options
|
||
*/
|
||
public function __construct( array $config = [] ) {
|
||
// Parent constructor
|
||
parent::__construct( array_merge( [ 'infusable' => true ], $config ) );
|
||
|
||
// Initialization
|
||
$this->addClasses( [ 'mw-widget-userInputWidget' ] );
|
||
}
|
||
|
||
protected function getJavaScriptClassName() {
|
||
return 'mw.widgets.UserInputWidget';
|
||
}
|
||
}
|