Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/lib/spikephpcoverage/src/cli/instrument.php File Reference

Go to the source code of this file.

Functions

 help ()
 error ($msg)
 writeMsg ($msg)
 instrument ($file)
 uninstrument ($file)
 get_all_php_files ($dir, &$excludeFiles, $recursive)

Variables

 if (!defined("__PHPCOVERAGE_HOME"))
 $RECURSIVE = false
 $UNDO = false
 $top_file = "/phpcoverage.remote.top.inc.php"
 $bottom_file = "/phpcoverage.remote.bottom.inc.php"
for($i=1;$i< $argc;$i++) if(!is_dir($LOCAL_PHPCOVERAGE_LOCATION))
if(empty($PHPCOVERAGE_HOME)||!is_dir($PHPCOVERAGE_HOME)) 
$LOCAL_PHPCOVERAGE_LOCATION = realpath($LOCAL_PHPCOVERAGE_LOCATION)
if(file_exists($LOCAL_PHPCOVERAGE_LOCATION.$top_file)) $ret = copy($PHPCOVERAGE_HOME . $top_file, $LOCAL_PHPCOVERAGE_LOCATION . $top_file)
if(!$ret) $top = "\"; ?>\n"
 $bottom = "\"; ?>\n"

Function Documentation

error ( msg)

Print error message and exit

Parameters:
$msgMessage to write to console. public

Definition at line 49 of file instrument.php.

get_all_php_files ( dir,
&$  excludeFiles,
recursive 
)

Retrive a list of all PHP files in the given directory

Parameters:
$dirDirectory to scan
$recursiveTrue is directory is scanned recursively
Returns:
Array List of PHP files public

Definition at line 155 of file instrument.php.

help ( )

Print help message and exit

public

Definition at line 26 of file instrument.php.

Here is the caller graph for this function:

instrument ( file)

Instrument the PHP file.

Parameters:
$fileFile path public

Definition at line 73 of file instrument.php.

Here is the call graph for this function:

uninstrument ( file)

Uninstrument the PHP file

Parameters:
$fileFile path public

Definition at line 108 of file instrument.php.

Here is the call graph for this function:

writeMsg ( msg)

Write a information message

Parameters:
$msgMessage to write to console. public

Definition at line 60 of file instrument.php.

Here is the caller graph for this function:


Variable Documentation

$bottom = "\"; ?>\n"

Definition at line 265 of file instrument.php.

$bottom_file = "/phpcoverage.remote.bottom.inc.php"

Definition at line 199 of file instrument.php.

for ($i=1;$i< $argc;$i++) if (!is_dir($LOCAL_PHPCOVERAGE_LOCATION)) if (empty($PHPCOVERAGE_HOME)||!is_dir($PHPCOVERAGE_HOME)) $LOCAL_PHPCOVERAGE_LOCATION = realpath($LOCAL_PHPCOVERAGE_LOCATION)

Definition at line 249 of file instrument.php.

$RECURSIVE = false

Definition at line 195 of file instrument.php.

if (!$ret) if (file_exists($LOCAL_PHPCOVERAGE_LOCATION.$bottom_file)) $ret = copy($PHPCOVERAGE_HOME . $top_file, $LOCAL_PHPCOVERAGE_LOCATION . $top_file)

Definition at line 253 of file instrument.php.

if (!$ret) $top = "\"; ?>\n"

Definition at line 264 of file instrument.php.

$top_file = "/phpcoverage.remote.top.inc.php"

Definition at line 198 of file instrument.php.

$UNDO = false

Definition at line 196 of file instrument.php.

if(!defined("__PHPCOVERAGE_HOME"))

Definition at line 13 of file instrument.php.

 All Data Structures Namespaces Files Functions Variables Enumerations