|
MobileFrontend
Mobile optimised frontend for MediaWiki
|
Hooks for Advanced Mobile Contributions. More...
Classes | |
| interface | BaseDomainExtractorInterface |
| Helper for operations on domain names. More... | |
| class | WMFBaseDomainExtractor |
| Utility class to find base domain for given host. More... | |
Hooks for Advanced Mobile Contributions.
User Modes collection.
This class defines the "stable" user mode for theMobileFrontend feature \Features.
An easy way to enable features only for logged in users.
Interface represents user mobile mode.
Represents single mobile feature.
A facade for UserModes and MobileFrontend Features system.
\Features
Advanced Mobile Contributions Manager.
\Amc
FeaturesManager takes care about all available user modes and features It handles relations between mode and features (one to many relation) and allows an easy acecss to single mode/feature so there is no need to retrieve objects from the MediaWikiServices.
\Features
\Features @codeCoverageIgnore
As example: AMC Mode
\Features @codeCoverageIgnore
This class is an Adapter for the User object to fulfill FeaturesManager requirements. Instead of hardcoding if ( $user->isRegistered() ) { logic in each feature code, we can re-use this mode and have isRegistered check only in one place for all features.
To use it please define feature like that:
$wgMFMyNewFeature => [ ... 'loggedin' => true, ];
\Features
This class exists to provide a safe collection of IUserModes \Features