MediaWiki
1.28.0
|
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) | |
_newObject () | |
Public Member Functions inherited from StubObject | |
__call ($name, $args) | |
Function called by PHP if no function with that name exists in this object. More... | |
__construct ($global=null, $class=null, $params=[]) | |
Constructor. More... | |
_call ($name, $args) | |
Function called if any function exists with that name in this object. More... | |
_newObject () | |
Create a new object to replace this stub 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... | |
Public Attributes | |
$version | |
Protected Attributes | |
$realValue | |
Protected Attributes inherited from StubObject | |
null string | $class |
null callable | $factory |
null string | $global |
array | $params |
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... | |
Class to allow throwing wfDeprecated warnings when people use globals that we do not want them to.
Definition at line 28 of file DeprecatedGlobal.php.
DeprecatedGlobal::__construct | ( | $name, | |
$realValue, | |||
$version = false |
|||
) |
Definition at line 31 of file DeprecatedGlobal.php.
References $name, $realValue, $version, and version.
DeprecatedGlobal::_newObject | ( | ) |
Definition at line 40 of file DeprecatedGlobal.php.
References $realValue, global, version, and wfDeprecated().
|
protected |
Definition at line 29 of file DeprecatedGlobal.php.
Referenced by __construct(), and _newObject().
DeprecatedGlobal::$version |
Definition at line 29 of file DeprecatedGlobal.php.
Referenced by __construct().