Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5989906
StableUserMode.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
920 B
Referenced Files
None
Subscribers
None
StableUserMode.php
View Options
<?php
namespace
MobileFrontend\Features
;
/**
* Temporary class to provide a bridge between old stable mode handling and new Feature management
* system.
*
* Beta mode will be refactored properly in T212802, for now we need an easy way to retrieve
* information about beta mode.
*
* IMPORTANT: This class provides read-only state, if you want to enable/disable beta mode
* please use MobileContext classes
*
* @package MobileFrontend\Features
*/
class
StableUserMode
implements
IUserMode
{
/**
* @var \MobileContext
*/
private
$context
;
/**
* @param \MobileContext $context Mobile context
*/
public
function
__construct
(
\MobileContext
$context
)
{
$this
->
context
=
$context
;
}
/**
* @inheritDoc
*/
public
function
isEnabled
()
{
return
!
$this
->
context
->
isBetaGroupMember
();
}
/**
* @inheritDoc
*/
public
function
getModeIdentifier
()
{
return
IFeature
::
CONFIG_STABLE
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Oct 4, 01:18 (3 w, 4 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
61/b5/66a091a7873bdfb4f178dfb4792b
Default Alt Text
StableUserMode.php (920 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment