Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4133531
NamespacesMultiselectWidget.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
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'
]
);
}
/** @inheritDoc */
protected
function
getJavaScriptClassName
()
{
return
'mw.widgets.NamespacesMultiselectWidget'
;
}
/** @inheritDoc */
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
Wed, Aug 19, 12:11 (3 w, 2 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
87/2a/949a8b5f6f234848f3f47f221438
Default Alt Text
NamespacesMultiselectWidget.php (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment