GlobalFunctions
GlobalFunctions

A wrapper class for global functions in the PHP standard library.  This exists mostly to facilitate unit testing.

Functions
include
public function include(
$path,
&$global_include_wrapper_defined_vars null
)

This is a wrapper around the native "include" construct.

In addition to returning the result of the inclusion, this function takes a reference parameter that returns a hash of all variables defined in the current scope.  This is because we sometimes want access to any variables that the include file defines, but by calling the include within this wrapper they become local to the wrapper.  This reference variables gives us a way to pass those values back to the caller.