MediaWiki  REL1_22
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

 $mVersion

Protected Attributes

 $mRealValue

Detailed Description

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.


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 33 of file DeprecatedGlobal.php.

References $name.


Member Function Documentation

Create a new object to replace this stub object.

Returns:
object

Reimplemented from StubObject.

Definition at line 39 of file DeprecatedGlobal.php.

References wfDeprecated().


Member Data Documentation

DeprecatedGlobal::$mRealValue [protected]

Definition at line 31 of file DeprecatedGlobal.php.

DeprecatedGlobal::$mVersion

Definition at line 31 of file DeprecatedGlobal.php.


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