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 }
StubUserLang\__construct
__construct()
Definition: StubUserLang.php:26
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
RequestContext\getMain
static getMain()
Get the RequestContext object associated with the main request.
Definition: RequestContext.php:484
StubUserLang\_newObject
_newObject()
Definition: StubUserLang.php:33