MediaWiki
master
StubUserLang.php
Go to the documentation of this file.
1
<?php
24
class
StubUserLang
extends
StubObject
{
25
26
public
function
__construct
() {
27
parent::__construct(
'wgLang'
);
28
}
29
33
public
function
_newObject
() {
34
return
RequestContext::getMain
()->getLanguage();
35
}
36
}
RequestContext\getMain
static getMain()
Get the RequestContext object associated with the main request.
Definition:
RequestContext.php:556
StubObject
Class to implement stub globals, which are globals that delay loading the their associated module cod...
Definition:
StubObject.php:51
StubUserLang
Stub object for the user language.
Definition:
StubUserLang.php:24
StubUserLang\__construct
__construct()
Definition:
StubUserLang.php:26
StubUserLang\_newObject
_newObject()
Definition:
StubUserLang.php:33
includes
StubUserLang.php
Generated on Sat May 21 2022 21:09:04 for MediaWiki by
1.9.1