MediaWiki REL1_37
CodeCleanerGlobalsPass Class Reference

Prefix the real command with a 'global $VAR, $VAR2, ...;' command, where $VAR etc. More...

Inheritance diagram for CodeCleanerGlobalsPass:
Collaboration diagram for CodeCleanerGlobalsPass:

Public Member Functions

 beforeTraverse (array $nodes)
 

Static Private Attributes

static $superglobals
 

Detailed Description

Prefix the real command with a 'global $VAR, $VAR2, ...;' command, where $VAR etc.

are the current global variables. This will make the shell behave as if it was running in the global scope (almost; variables created in the shell won't become global if no global variable by that name existed before) so debugging MediaWikis globals-based configuration settings is less cumbersome, and behavior is closer to that of eval.php.

Definition at line 37 of file CodeCleanerGlobalsPass.php.

Member Function Documentation

◆ beforeTraverse()

CodeCleanerGlobalsPass::beforeTraverse ( array  $nodes)

Definition at line 42 of file CodeCleanerGlobalsPass.php.

Member Data Documentation

◆ $superglobals

CodeCleanerGlobalsPass::$superglobals
staticprivate
Initial value:
= [
'GLOBALS', '_SERVER', '_ENV', '_FILES', '_COOKIE', '_POST', '_GET', '_SESSION'
]

Definition at line 38 of file CodeCleanerGlobalsPass.php.


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