|
MediaWiki master
|
Class to allow throwing wfDeprecated warnings when people use globals that we do not want them to. More...
Inherits MediaWiki\StubObject\StubObject.

Public Member Functions | |
| __construct ( $name, $callback, $version=false) | |
| _newObject () | |
Public Member Functions inherited from MediaWiki\StubObject\StubObject | |
| __call ( $name, $args) | |
| Function called by PHP if no function with that name exists in this object. | |
| __get ( $name) | |
| Function called by PHP if no property with that name exists in this object. | |
| __set ( $name, $value) | |
| Function called by PHP if no property with that name exists in this object. | |
| _call ( $name, $args) | |
| Function called if any function exists with that name in this object. | |
| _get ( $name) | |
| Wrapper for __get(), similar to _call() above. | |
| _set ( $name, $value) | |
| Wrapper for __set(), similar to _call() above. | |
| _unstub ( $name='_unstub', $level=2) | |
| This function creates a new object of the real class and replace it in the global variable. | |
Protected Attributes | |
| string false | $version |
Protected Attributes inherited from MediaWiki\StubObject\StubObject | |
| null string | $class |
| null callable | $factory |
| null string | $global |
| array | $params |
Additional Inherited Members | |
Static Public Member Functions inherited from MediaWiki\StubObject\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. | |
Class to allow throwing wfDeprecated warnings when people use globals that we do not want them to.
Definition at line 19 of file DeprecatedGlobal.php.
| MediaWiki\StubObject\DeprecatedGlobal::__construct | ( | $name, | |
| $callback, | |||
| $version = false ) |
| string | $name | Global name |
| callable | string | $callback | Factory function or class name to construct |
| string | false | $version | Version global was deprecated in |
Reimplemented from MediaWiki\StubObject\StubObject.
Definition at line 28 of file DeprecatedGlobal.php.
References MediaWiki\StubObject\DeprecatedGlobal\$version.
| MediaWiki\StubObject\DeprecatedGlobal::_newObject | ( | ) |
Reimplemented from MediaWiki\StubObject\StubObject.
Definition at line 36 of file DeprecatedGlobal.php.
References wfDeprecated().
|
protected |
Definition at line 21 of file DeprecatedGlobal.php.
Referenced by MediaWiki\StubObject\DeprecatedGlobal\__construct().