Go to the documentation of this file.
56 $this->mGlobal = $global;
57 $this->mClass = $class;
69 return is_object( $obj ) && !$obj instanceof
StubObject;
82 $obj->_unstub(
'unstub', 3 );
134 static $recursionLevel = 0;
140 if ( get_class(
$GLOBALS[$this->mGlobal] ) != $this->mClass ) {
144 if ( ++$recursionLevel > 2 ) {
146 throw new MWException(
"Unstub loop detected on call of \${$this->mGlobal}->$name from $caller\n" );
148 wfDebug(
"Unstubbing \${$this->mGlobal} on call of \${$this->mGlobal}::$name from $caller\n" );
166 parent::__construct(
'wgContLang' );
179 $obj->initEncoding();
180 $obj->initContLang();
193 parent::__construct(
'wgLang' );
Stub object for the content language of this wiki.
skin txt MediaWiki includes four core it has been set as the default in MediaWiki since the replacing Monobook it had been been the default skin since before being replaced by Vector largely rewritten in while keeping its appearance Several legacy skins were removed in the as the burden of supporting them became too heavy to bear Those in etc for skin dependent CSS etc for skin dependent JavaScript These can also be customised on a per user by etc This feature has led to a wide variety of user styles becoming that gallery is a good place to ending in php
__call( $name, $args)
Function called by PHP if no function with that name exists in this object.
__call( $name, $args)
Function called by PHP if no function with that name exists in this object.
Class to implement stub globals, which are globals that delay loading the their associated module cod...
__call( $name, $args)
Function called by PHP if no function with that name exists in this object.
wfProfileIn( $functionname)
Begin profiling of a function.
if(!defined( 'MEDIAWIKI')) $fname
This file is not a valid entry point, perform no further processing unless MEDIAWIKI is defined.
wfDeprecated( $function, $version=false, $component=false, $callerOffset=2)
Throws a warning that $function is deprecated.
wfProfileOut( $functionname='missing')
Stop profiling of a function.
the array() calling protocol came about after MediaWiki 1.4rc1.
List of Api Query prop modules.
when a variable name is used in a it is silently declared as a new masking the global
static newObj( $class, $args=array())
wfDebug( $text, $dest='all')
Sends a line to the debug log if enabled or, optionally, to a comment in output.
Allows to change the fields on the form that will be generated $name
Stub object for the user language.
_call( $name, $args)
Function called if any function exists with that name in this object.
static getMain()
Static methods.
_newObject()
Create a new object to replace this stub object.
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.
static factory( $code)
Get a cached or new language object for a given language code.
_unstub( $name='_unstub', $level=2)
This function creates a new object of the real class and replace it in the global variable.
wfGetCaller( $level=2)
Get the name of the function which called this function wfGetCaller( 1 ) is the function with the wfG...
__construct( $global=null, $class=null, $params=array())
Constructor.