MediaWiki  1.23.15
StubUserLang Class Reference

Stub object for the user language. More...

Inheritance diagram for StubUserLang:
Collaboration diagram for StubUserLang:

Public Member Functions

 __call ( $name, $args)
 Function called by PHP if no function with that name exists in this object. More...
 
 __construct ()
 
 _newObject ()
 
- Public Member Functions inherited from StubObject
 __construct ( $global=null, $class=null, $params=array())
 Constructor. More...
 
 _call ( $name, $args)
 Function called if any function exists with that name in this object. More...
 
 _unstub ( $name='_unstub', $level=2)
 This function creates a new object of the real class and replace it in the global variable. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from StubObject
static isRealObject ( $obj)
 Returns a bool value whenever $obj is a stub object. More...
 
static unstub ( $obj)
 Unstubs an object, if it is a stub object. More...
 
- Public Attributes inherited from StubObject
 $mClass
 
 $mGlobal
 
 $mParams
 

Detailed Description

Stub object for the user language.

It depends of the user preferences and "uselang" parameter that can be passed to index.php. This object have to be in $wgLang global.

Definition at line 190 of file StubObject.php.

Constructor & Destructor Documentation

◆ __construct()

StubUserLang::__construct ( )

Definition at line 192 of file StubObject.php.

Member Function Documentation

◆ __call()

StubUserLang::__call (   $name,
  $args 
)

Function called by PHP if no function with that name exists in this object.

Parameters
string$namename of the function called
array$argsarguments
Returns
mixed

Reimplemented from StubObject.

Definition at line 196 of file StubObject.php.

References $args, $name, and StubObject\_call().

◆ _newObject()

StubUserLang::_newObject ( )
Returns
Language

Reimplemented from StubObject.

Definition at line 203 of file StubObject.php.

References RequestContext\getMain().


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