Page MenuHomeWickedGov Phorge

UserInputWidget.php
No OneTemporary

Size
1 KB
Referenced Files
None
Subscribers
None

UserInputWidget.php

<?php
namespace MediaWiki\Widget;
use OOUI\TextInputWidget;
/**
* User input widget.
*
* @copyright 2011-2015 MediaWiki Widgets Team and others; see AUTHORS.txt
* @license MIT
*/
class UserInputWidget extends TextInputWidget {
/** @var bool */
protected $excludeNamed;
/** @var bool */
protected $excludeTemp;
/**
* @param array $config Configuration options
*/
public function __construct( array $config = [] ) {
parent::__construct( $config );
if ( isset( $config['excludenamed'] ) ) {
$this->excludeNamed = $config['excludenamed'];
}
if ( isset( $config['excludetemp'] ) ) {
$this->excludeTemp = $config['excludetemp'];
}
// Initialization
$this->addClasses( [ 'mw-widget-userInputWidget' ] );
}
/** @inheritDoc */
protected function getJavaScriptClassName() {
return 'mw.widgets.UserInputWidget';
}
/** @inheritDoc */
public function getConfig( &$config ) {
$config['$overlay'] = true;
if ( $this->excludeNamed !== null ) {
$config['excludenamed'] = $this->excludeNamed;
}
if ( $this->excludeTemp !== null ) {
$config['excludetemp'] = $this->excludeTemp;
}
return parent::getConfig( $config );
}
}

File Metadata

Mime Type
text/x-php
Expires
Aug 18 2026, 03:20 (9 w, 2 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
2c/3c/4ff95e329862ad65fea9de706e1f
Default Alt Text
UserInputWidget.php (1 KB)

Event Timeline