Page MenuHomeWickedGov Phorge

HTMLGlobalUserTextField.php
No OneTemporary

Size
870 B
Referenced Files
None
Subscribers
None

HTMLGlobalUserTextField.php

<?php
namespace MediaWiki\Extension\CentralAuth\Widget;
use MediaWiki\HTMLForm\Field\HTMLUserTextField;
/**
* Implements a text input field for usernames.
* Automatically auto-completes if using the OOUI display format.
*
* @since 1.33
*/
class HTMLGlobalUserTextField extends HTMLUserTextField {
/** @inheritDoc */
public function __construct( $params ) {
parent::__construct( $params );
}
/** @inheritDoc */
protected function getInputWidget( $params ) {
if ( isset( $this->mParams['excludenamed'] ) ) {
$params['excludenamed'] = $this->mParams['excludenamed'];
}
if ( isset( $this->mParams['excludetemp'] ) ) {
$params['excludetemp'] = $this->mParams['excludetemp'];
}
return new GlobalUserInputWidget( $params );
}
/** @inheritDoc */
protected function getOOUIModules() {
return [ 'ext.widgets.GlobalUserInputWidget' ];
}
}

File Metadata

Mime Type
text/x-php
Expires
Sat, May 16, 11:51 (17 h, 5 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
0e/a0/3f4d5e5d2750f1f92f4c8bbdbfac
Default Alt Text
HTMLGlobalUserTextField.php (870 B)

Event Timeline