Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F1431635
BetaUserMode.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
913 B
Referenced Files
None
Subscribers
None
BetaUserMode.php
View Options
<?php
namespace
MobileFrontend\Features
;
/**
* Temporary class to provide a bridge between old Beta 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
BetaUserMode
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_BETA
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, May 16, 20:53 (1 d, 10 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
44/fd/55d6442e9f8f77e6600538307374
Default Alt Text
BetaUserMode.php (913 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment