Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F1430879
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
Sat, May 16, 19:43 (4 h, 1 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
50/ea/5656ff98680198cf28eaa315e435
Default Alt Text
OrderedMultiselectWidget.php (720 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment