Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4077478
UserInputWidget.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
UserInputWidget.php
View Options
<?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
Details
Attached
Mime Type
text/x-php
Expires
Aug 18 2026, 03:20 (9 w, 1 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
2c/3c/4ff95e329862ad65fea9de706e1f
Default Alt Text
UserInputWidget.php (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment