MediaWiki  1.30.0
CodeCleanerGlobalsPass Class Reference

Prefix the real command with a bunch of 'global $VAR;' commands, one for each global. 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 bunch of 'global $VAR;' commands, one for each global.

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).

Definition at line 36 of file CodeCleanerGlobalsPass.inc.

Member Function Documentation

◆ beforeTraverse()

CodeCleanerGlobalsPass::beforeTraverse ( array  $nodes)

Definition at line 41 of file CodeCleanerGlobalsPass.inc.

References $GLOBALS, $name, and as.

Member Data Documentation

◆ $superglobals

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

Definition at line 37 of file CodeCleanerGlobalsPass.inc.


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