MediaWiki  1.23.2
Go to the documentation of this file.
1 <?php
29  // The m's are to stay consistent with parent class.
30  protected $mRealValue, $mVersion;
32  function __construct( $name, $realValue, $version = false ) {
33  parent::__construct( $name );
34  $this->mRealValue = $realValue;
35  $this->mVersion = $version;
36  }
38  function _newObject() {
39  /* Put the caller offset for wfDeprecated as 6, as
40  * that gives the function that uses this object, since:
41  * 1 = this function ( _newObject )
42  * 2 = StubObject::_unstub
43  * 3 = StubObject::_call
44  * 4 = StubObject::__call
45  * 5 = DeprecatedGlobal::<method of global called>
46  * 6 = Actual function using the global.
47  * Of course its theoretically possible to have other call
48  * sequences for this method, but that seems to be
49  * rather unlikely.
50  */
51  wfDeprecated( '$' . $this->mGlobal, $this->mVersion, false, 6 );
52  return $this->mRealValue;
53  }
54 }
Definition: DeprecatedGlobal.php:30
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
Definition: skin.txt:62
Class to implement stub globals, which are globals that delay loading the their associated module cod...
Definition: StubObject.php:44
Create a new object to replace this stub object.
Definition: DeprecatedGlobal.php:38
__construct( $name, $realValue, $version=false)
Definition: DeprecatedGlobal.php:32
wfDeprecated( $function, $version=false, $component=false, $callerOffset=2)
Throws a warning that $function is deprecated.
Definition: GlobalFunctions.php:1127
Allows to change the fields on the form that will be generated $name
Definition: hooks.txt:336
Class to allow throwing wfDeprecated warnings when people use globals that we do not want them to.
Definition: DeprecatedGlobal.php:28
Definition: parserTests.php:86
Definition: DeprecatedGlobal.php:30