Vector
Vector is a skin for MediaWiki. Vector has been the default skin on all Wikimedia wikis since 2010.
Vector\SkinVersionLookup Class Reference

Public Member Functions

 __construct (WebRequest $request, User $user, Config $config)
 This constructor accepts all dependencies needed to obtain the skin version. More...
 
 isLegacy ()
 Whether or not the legacy skin is being used. More...
 
 getVersion ()
 The skin version as a string. More...
 

Constructor & Destructor Documentation

◆ __construct()

Vector\SkinVersionLookup::__construct ( WebRequest  $request,
User  $user,
Config  $config 
)

This constructor accepts all dependencies needed to obtain the skin version.

The dependencies are lazily evaluated, not cached, meaning they always return the current results.

Parameters
WebRequest$request
User$user
Config$config

Member Function Documentation

◆ getVersion()

Vector\SkinVersionLookup::getVersion ( )

The skin version as a string.

E.g., Constants::SKIN_VERSION_LATEST, Constants::SKIN_VERSION_LATEST, or maybe 'beta'. Note: it's likely someone will put arbitrary strings in the query parameter which means this function returns those strings as is.

Returns
string
Exceptions

◆ isLegacy()

Vector\SkinVersionLookup::isLegacy ( )

Whether or not the legacy skin is being used.

Returns
bool
Exceptions

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