Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 5 |
|
0.00% |
0 / 3 |
CRAP | |
0.00% |
0 / 1 |
GlobalUserInputWidget | |
0.00% |
0 / 5 |
|
0.00% |
0 / 3 |
12 | |
0.00% |
0 / 1 |
__construct | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |||
getJavaScriptClassName | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
getConfig | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 |
1 | <?php |
2 | |
3 | namespace MediaWiki\Extension\CentralAuth\Widget; |
4 | |
5 | use OOUI\TextInputWidget; |
6 | |
7 | class GlobalUserInputWidget extends TextInputWidget { |
8 | |
9 | public function __construct( array $config = [] ) { |
10 | parent::__construct( $config ); |
11 | |
12 | // Initialization |
13 | $this->addClasses( [ 'mw-widget-userInputWidget' ] ); |
14 | } |
15 | |
16 | /** @inheritDoc */ |
17 | protected function getJavaScriptClassName() { |
18 | return 'mw.widgets.GlobalUserInputWidget'; |
19 | } |
20 | |
21 | /** @inheritDoc */ |
22 | public function getConfig( &$config ) { |
23 | $config['$overlay'] = true; |
24 | return parent::getConfig( $config ); |
25 | } |
26 | } |