MediaWiki  REL1_24
DeprecatedGlobal Class Reference

Class to allow throwing wfDeprecated warnings when people use globals that we do not want them to. More...

Inheritance diagram for DeprecatedGlobal:
Collaboration diagram for DeprecatedGlobal:

List of all members.

Public Member Functions

 __construct ($name, $realValue, $version=false)
 Constructor.
 _newObject ()
 Create a new object to replace this stub object.

Public Attributes

 $version

Protected Attributes

 $realValue

Detailed Description

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.


Constructor & Destructor Documentation

DeprecatedGlobal::__construct ( global,
class,
params = false 
)

Constructor.

Parameters:
string$globalName of the global variable.
string$className of the class of the real object.
array$paramsParameters to pass to constructor of the real object.

Reimplemented from StubObject.

Definition at line 31 of file DeprecatedGlobal.php.

References $name, $realValue, $version, and version.


Member Function Documentation

Create a new object to replace this stub object.

Returns:
object

Reimplemented from StubObject.

Definition at line 40 of file DeprecatedGlobal.php.

References global, version, and wfDeprecated().


Member Data Documentation

DeprecatedGlobal::$realValue [protected]

Definition at line 29 of file DeprecatedGlobal.php.

Referenced by __construct().

DeprecatedGlobal::$version

Definition at line 29 of file DeprecatedGlobal.php.

Referenced by __construct().


The documentation for this class was generated from the following file: