MediaWiki REL1_28
|
Stub object for the user language. More...
Public Member Functions | |
__construct () | |
_newObject () | |
findVariantLink (&$link, &$nt, $ignoreOtherCond=false) | |
Call Language::findVariantLink after unstubbing $wgLang. | |
Public Member Functions inherited from StubObject | |
__call ( $name, $args) | |
Function called by PHP if no function with that name exists in this object. | |
__construct ( $global=null, $class=null, $params=[]) | |
Constructor. | |
_call ( $name, $args) | |
Function called if any function exists with that name in this object. | |
_unstub ( $name='_unstub', $level=2) | |
This function creates a new object of the real class and replace it in the global variable. | |
Additional Inherited Members | |
Static Public Member Functions inherited from StubObject | |
static | isRealObject ( $obj) |
Returns a bool value whenever $obj is a stub object. | |
static | unstub (&$obj) |
Unstubs an object, if it is a stub object. | |
Protected Attributes inherited from StubObject | |
null string | $class |
null callable | $factory |
null string | $global |
array | $params |
Stub object for the user language.
Assigned to the $wgLang global.
Definition at line 179 of file StubObject.php.
StubUserLang::__construct | ( | ) |
Definition at line 181 of file StubObject.php.
StubUserLang::_newObject | ( | ) |
Reimplemented from StubObject.
Definition at line 206 of file StubObject.php.
References RequestContext\getMain().
StubUserLang::findVariantLink | ( | & | $link, |
& | $nt, | ||
$ignoreOtherCond = false |
|||
) |
Call Language::findVariantLink after unstubbing $wgLang.
This method is implemented with a full signature rather than relying on __call so that the pass-by-reference signature of the proxied method is honored.
string | &$link | The name of the link |
Title | &$nt | The title object of the link |
bool | $ignoreOtherCond | To disable other conditions when we need to transclude a template or update a category's link |
Definition at line 197 of file StubObject.php.
References $link, $wgLang, StubObject\_unstub(), and global.