MediaWiki
REL1_22
|
Class to allow throwing wfDeprecated warnings when people use globals that we do not want them to. More...
Public Member Functions | |
__construct ($name, $realValue, $version=false) | |
Constructor. | |
_newObject () | |
Create a new object to replace this stub object. | |
Public Attributes | |
$mVersion | |
Protected Attributes | |
$mRealValue |
Class to allow throwing wfDeprecated warnings when people use globals that we do not want them to.
(For example like $wgArticle)
Definition at line 29 of file DeprecatedGlobal.php.
DeprecatedGlobal::__construct | ( | $ | global, |
$ | class, | ||
$ | params = false |
||
) |
Constructor.
string | $global | name of the global variable. |
string | $class | name of the class of the real object. |
array | $params | parameters to pass to constructor of the real object. |
Reimplemented from StubObject.
Definition at line 33 of file DeprecatedGlobal.php.
References $name.
Create a new object to replace this stub object.
Reimplemented from StubObject.
Definition at line 39 of file DeprecatedGlobal.php.
References wfDeprecated().
DeprecatedGlobal::$mRealValue [protected] |
Definition at line 31 of file DeprecatedGlobal.php.
DeprecatedGlobal::$mVersion |
Definition at line 31 of file DeprecatedGlobal.php.