Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4072145
OrderedMultiselectWidget.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
720 B
Referenced Files
None
Subscribers
None
OrderedMultiselectWidget.php
View Options
<?php
namespace
MediaWiki\Widget
;
/**
* Widget to select multiple options from a dropdown.
*
* @license MIT
*/
class
OrderedMultiselectWidget
extends
TagMultiselectWidget
{
private
array
$mOptions
;
/**
* @param array $config Configuration options
* - array $config['options'] Grouped options for the dropdown menu
*/
public
function
__construct
(
$config
)
{
$this
->
mOptions
=
$config
[
'options'
];
parent
::
__construct
(
$config
);
}
/** @inheritDoc */
public
function
getConfig
(
&
$config
)
{
$config
[
'options'
]
=
$this
->
mOptions
;
return
parent
::
getConfig
(
$config
);
}
/** @inheritDoc */
protected
function
getJavaScriptClassName
()
{
return
'mw.widgets.OrderedMultiselectWidget'
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Aug 17 2026, 06:47 (12 w, 19 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
13/e3/8d1005ba66e073254d15d88e4c10
Default Alt Text
OrderedMultiselectWidget.php (720 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment