Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5957239
NamespacesMultiselectWidget.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
985 B
Referenced Files
None
Subscribers
None
NamespacesMultiselectWidget.php
View Options
<?php
namespace
MediaWiki\Widget
;
/**
* Widget to select multiple namespaces.
*
* @copyright 2017 MediaWiki Widgets Team and others; see AUTHORS.txt
* @license MIT
*/
class
NamespacesMultiselectWidget
extends
TagMultiselectWidget
{
/** @var bool|null */
protected
$allowEditTags
=
null
;
/**
* @param array $config Configuration options
* - bool $config['allowEditTags'] Allow editing of the tags by clicking them
*/
public
function
__construct
(
array
$config
=
[]
)
{
parent
::
__construct
(
$config
);
if
(
isset
(
$config
[
'allowEditTags'
]
)
)
{
$this
->
allowEditTags
=
$config
[
'allowEditTags'
];
}
$this
->
addClasses
(
[
'mw-widgets-namespacesMultiselectWidget'
]
);
}
protected
function
getJavaScriptClassName
()
{
return
'mw.widgets.NamespacesMultiselectWidget'
;
}
public
function
getConfig
(
&
$config
)
{
if
(
$this
->
allowEditTags
!==
null
)
{
$config
[
'allowEditTags'
]
=
$this
->
allowEditTags
;
}
return
parent
::
getConfig
(
$config
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Oct 3, 04:58 (2 w, 6 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
58/d2/909a34f573cd51fb7a2692654af9
Default Alt Text
NamespacesMultiselectWidget.php (985 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment