MobileFrontend
Mobile optimised frontend for MediaWiki
|
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. | |
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.
Implemented in MobileFrontend\Features\Feature.
MobileFrontend\Features\IFeature::getDescriptionKey | ( | ) |
The feature name defined as a translation tag, ex: mobile-frontend-mobile-option-MFConfigFlag-description.
Implemented in MobileFrontend\Features\Feature.
MobileFrontend\Features\IFeature::getGroup | ( | ) |
MobileFrontend\Features\IFeature::getId | ( | ) |
Get the feature id Used as a identifier in forms, database etc.
Should be unique
Implemented in MobileFrontend\Features\Feature.
MobileFrontend\Features\IFeature::getNameKey | ( | ) |
The feature name defined as a translation tag ex: mobile-frontend-mobile-option-MFConfigFlag.
Implemented in MobileFrontend\Features\Feature.
MobileFrontend\Features\IFeature::isAvailable | ( | IUserMode | $mode | ) |
Check feature availability in given user mode ( base, beta, alpha etc )
IUserMode | $mode | UserMode |
Implemented in MobileFrontend\Features\Feature.