Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F1428751
GlobalUserInputWidget.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
GlobalUserInputWidget.php
View Options
<?php
namespace
MediaWiki\Extension\CentralAuth\Widget
;
use
OOUI\TextInputWidget
;
class
GlobalUserInputWidget
extends
TextInputWidget
{
/** @var bool */
protected
$excludeNamed
;
/** @var bool */
protected
$excludeTemp
;
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.GlobalUserInputWidget'
;
}
/** @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
Sat, May 16, 16:37 (12 h, 2 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
d7/3d/f6f5fb29fff9560def5fb2e9e950
Default Alt Text
GlobalUserInputWidget.php (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment