MobileFrontend
Mobile optimised frontend for MediaWiki
Loading...
Searching...
No Matches
MobileFrontend\Features\IFeature Interface Reference
+ Inheritance diagram for MobileFrontend\Features\IFeature:

Public Member Functions

 getId ()
 Get the feature id Used as a identifier in forms, database etc.
 
 getGroup ()
 Get the feature group.
 
 __toString ()
 Serialise the feature as a string so that the feature manager can perform array_diff and array_intersect on results and identify where features are available and where they are not.
 
 isAvailable (IUserMode $mode)
 Check feature availability in given user mode ( base, beta, alpha etc )
 
 getNameKey ()
 The feature name defined as a translation tag ex: mobile-frontend-mobile-option-MFConfigFlag.
 
 getDescriptionKey ()
 The feature name defined as a translation tag, ex: mobile-frontend-mobile-option-MFConfigFlag-description.
 

Public Attributes

const CONFIG_BETA = 'beta'
 Beta mode defined in config.
 
const CONFIG_STABLE = 'base'
 Stable mode defined in config.
 

Member Function Documentation

◆ __toString()

MobileFrontend\Features\IFeature::__toString ( )

Serialise the feature as a string so that the feature manager can perform array_diff and array_intersect on results and identify where features are available and where they are not.

This should return the value of getId.

Returns
string

Implemented in MobileFrontend\Features\Feature.

◆ getDescriptionKey()

MobileFrontend\Features\IFeature::getDescriptionKey ( )

The feature name defined as a translation tag, ex: mobile-frontend-mobile-option-MFConfigFlag-description.

Returns
string

Implemented in MobileFrontend\Features\Feature.

◆ getGroup()

MobileFrontend\Features\IFeature::getGroup ( )

Get the feature group.

Returns
string

Implemented in MobileFrontend\Features\Feature.

◆ getId()

MobileFrontend\Features\IFeature::getId ( )

Get the feature id Used as a identifier in forms, database etc.

Should be unique

Returns
string

Implemented in MobileFrontend\Features\Feature.

◆ getNameKey()

MobileFrontend\Features\IFeature::getNameKey ( )

The feature name defined as a translation tag ex: mobile-frontend-mobile-option-MFConfigFlag.

Returns
string

Implemented in MobileFrontend\Features\Feature.

◆ isAvailable()

MobileFrontend\Features\IFeature::isAvailable ( IUserMode $mode)

Check feature availability in given user mode ( base, beta, alpha etc )

Parameters
IUserMode$modeUserMode
Returns
bool

Implemented in MobileFrontend\Features\Feature.


The documentation for this interface was generated from the following file: