Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 3 |
|
0.00% |
0 / 3 |
CRAP | |
0.00% |
0 / 1 |
HTMLGlobalUserTextField | |
0.00% |
0 / 3 |
|
0.00% |
0 / 3 |
12 | |
0.00% |
0 / 1 |
__construct | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
getInputWidget | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
getOOUIModules | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 |
1 | <?php |
2 | |
3 | namespace MediaWiki\Extension\CentralAuth\Widget; |
4 | |
5 | use HTMLUserTextField; |
6 | |
7 | /** |
8 | * Implements a text input field for usernames. |
9 | * Automatically auto-completes if using the OOUI display format. |
10 | * |
11 | * @since 1.33 |
12 | */ |
13 | class HTMLGlobalUserTextField extends HTMLUserTextField { |
14 | |
15 | /** @inheritDoc */ |
16 | public function __construct( $params ) { |
17 | parent::__construct( $params ); |
18 | } |
19 | |
20 | /** @inheritDoc */ |
21 | protected function getInputWidget( $params ) { |
22 | return new GlobalUserInputWidget( $params ); |
23 | } |
24 | |
25 | /** @inheritDoc */ |
26 | protected function getOOUIModules() { |
27 | return [ 'ext.widgets.GlobalUserInputWidget' ]; |
28 | } |
29 | } |