|
Moodle
2.2.1
http://www.collinsharper.com
|
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" | |
| error | ( | $ | msg | ) |
Print error message and exit
| $msg | Message 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
| $dir | Directory to scan |
| $recursive | True is directory is scanned recursively |
Definition at line 155 of file instrument.php.
| help | ( | ) |
Print help message and exit
public
Definition at line 26 of file instrument.php.

| instrument | ( | $ | file | ) |
Instrument the PHP file.
| $file | File path public |
Definition at line 73 of file instrument.php.

| uninstrument | ( | $ | file | ) |
Uninstrument the PHP file
| $file | File path public |
Definition at line 108 of file instrument.php.

| writeMsg | ( | $ | msg | ) |
Write a information message
| $msg | Message to write to console. public |
Definition at line 60 of file instrument.php.

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