Vector
Vector is a skin for MediaWiki. Vector has been the default skin on all Wikimedia wikis since 2010.
Loading...
Searching...
No Matches
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.
 
 isLegacy ()
 Whether or not the legacy skin is being used.
 
 getVersion ()
 The skin version as a string.
 

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

ConfigException

◆ isLegacy()

Vector\SkinVersionLookup::isLegacy ( )

Whether or not the legacy skin is being used.

Returns
bool
Exceptions

ConfigException


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