MediaWiki REL1_39
MediaWiki\ResourceLoader\Context72Hack Class Reference

PHP 7.2 hack to work around the issue described at https://phabricator.wikimedia.org/T166010#5962098 Load the Context class when ResourceLoader is loaded. More...

Inheritance diagram for MediaWiki\ResourceLoader\Context72Hack:
Collaboration diagram for MediaWiki\ResourceLoader\Context72Hack:

Additional Inherited Members

- Public Member Functions inherited from MediaWiki\ResourceLoader\Context
 __construct (ResourceLoader $resourceLoader, WebRequest $request)
 
 encodeJson ( $data)
 Wrapper around json_encode that avoids needless escapes, and pretty-prints in debug mode.
 
 getConfig ()
 
 getContentOverrideCallback ()
 Return the replaced-content mapping callback.
 
 getDebug ()
 
 getDirection ()
 
 getFormat ()
 
 getHash ()
 All factors that uniquely identify this request, except 'modules'.
 
 getImage ()
 
 getImageObj ()
 If this is a request for an image, get the Image object.
 
 getLanguage ()
 
 getLogger ()
 
 getModules ()
 
 getOnly ()
 
 getRaw ()
 
 getReqBase ()
 Get the request base parameters, omitting any defaults.
 
 getRequest ()
 
 getResourceLoader ()
 
 getSkin ()
 
 getUser ()
 
 getUserIdentity ()
 Get the possibly-cached UserIdentity object for the specified username.
 
 getUserObj ()
 Get the possibly-cached User object for the specified username.
 
 getVariant ()
 
 getVersion ()
 
 msg ( $key,... $params)
 Get a Message object with context set.
 
 shouldIncludeMessages ()
 
 shouldIncludeScripts ()
 
 shouldIncludeStyles ()
 
- Static Public Member Functions inherited from MediaWiki\ResourceLoader\Context
static debugFromString (?string $debug)
 
static newDummyContext ()
 Return a dummy Context object suitable for passing into things that don't "really" need a context.
 
- Public Attributes inherited from MediaWiki\ResourceLoader\Context
const DEBUG_LEGACY = 1
 
const DEBUG_OFF = 0
 
const DEFAULT_LANG = 'qqx'
 
const DEFAULT_SKIN = 'fallback'
 
- Protected Attributes inherited from MediaWiki\ResourceLoader\Context
int $debug
 
string null $direction
 
string null $format
 
string null $hash
 
string null $image
 
Image false $imageObj
 
string $language
 
LoggerInterface $logger
 
string[] $modules
 
string null $only
 
bool $raw
 
WebRequest $request
 
ResourceLoader $resourceLoader
 
string $skin
 
string null $user
 
UserIdentity null false $userIdentity = false
 
User null $userObj
 
string null $variant
 
string null $version
 

Detailed Description

PHP 7.2 hack to work around the issue described at https://phabricator.wikimedia.org/T166010#5962098 Load the Context class when ResourceLoader is loaded.

phpcs:disable Generic.Files.OneObjectStructurePerFile.MultipleFound phpcs:disable MediaWiki.Files.ClassMatchesFilename.NotMatch

Definition at line 89 of file ResourceLoader.php.


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