MobileFrontend
Mobile optimised frontend for MediaWiki
Loading...
Searching...
No Matches
MobileFrontend Namespace Reference

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...
 

Detailed Description

Hooks for Advanced Mobile Contributions.

User Modes collection.

Temporary class to provide a bridge between old stable mode handling and new Feature management system.

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

Temporary class to provide a bridge between old Beta mode handling and new Feature management system.

Advanced Mobile Contributions Manager.

\Amc

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

\Features

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: Beta Mode

\Features @codeCoverageIgnore

As example: AMC Mode

\Features @codeCoverageIgnore

This class is an Adapter for the User object to fulfill FeatureManager 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