Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5985537
MessageGroupStates.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
779 B
Referenced Files
None
Subscribers
None
MessageGroupStates.php
View Options
<?php
declare
(
strict_types
=
1
);
namespace
MediaWiki\Extension\Translate\MessageGroupProcessing
;
/**
* Wrapper class for using message group states.
*
* @author Niklas Laxström
* @author Siebrand Mazeland
* @copyright Copyright © 2012-2013 Niklas Laxström
* @license GPL-2.0-or-later
*/
class
MessageGroupStates
{
private
const
CONDKEY
=
'state conditions'
;
private
?
array
$config
;
public
function
__construct
(
?
array
$config
=
null
)
{
$this
->
config
=
$config
;
}
public
function
getStates
():
?
array
{
$conf
=
$this
->
config
;
unset
(
$conf
[
self
::
CONDKEY
]
);
return
$conf
;
}
public
function
getConditions
():
array
{
$conf
=
$this
->
config
;
return
$conf
[
self
::
CONDKEY
]
??
[];
}
}
class_alias
(
MessageGroupStates
::
class
,
'MessageGroupStates'
);
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Oct 3, 23:49 (2 w, 3 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
59/de/9743397379f212e1d73e443b84b5
Default Alt Text
MessageGroupStates.php (779 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment