Vector
Vector is a skin for MediaWiki. Vector has been the default skin on all Wikimedia wikis since 2010.
|
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. | |
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.
WebRequest | $request | |
User | $user | |
Config | $config |
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.
ConfigException
Vector\SkinVersionLookup::isLegacy | ( | ) |
Whether or not the legacy skin is being used.
ConfigException