|
Moodle
2.2.1
http://www.collinsharper.com
|

Public Member Functions | |
| _removeTrailingSlash ($path) | |
| collect (&$test, $path) | |
| _handle (&$test, $file) | |
| _isHidden ($filename) | |
Definition at line 19 of file collector.php.
| _handle | ( | &$ | test, |
| $ | file | ||
| ) |
This method determines what should be done with a given file and adds it via GroupTest::addTestFile() if necessary.
This method should be overriden to provide custom matching criteria, such as pattern matching, recursive matching, etc. For an example, see SimplePatternCollector::_handle().
| object | $test | Group test with GroupTest::addTestFile() method. |
| string | $filename | A filename as generated by collect() |
Reimplemented in SimplePatternCollector.
Definition at line 68 of file collector.php.

| _isHidden | ( | $ | filename | ) |
Tests for hidden files so as to skip them. Currently only tests for Unix hidden files.
| string | $filename | Plain filename. |
Definition at line 82 of file collector.php.

| _removeTrailingSlash | ( | $ | path | ) |
Strips off any kind of slash at the end so as to normalise the path.
| string | $path | Path to normalise. |
Definition at line 26 of file collector.php.

| collect | ( | &$ | test, |
| $ | path | ||
| ) |
Scans the directory and adds what it can.
| object | $test | Group test with GroupTest::addTestFile() method. |
| string | $path | Directory to scan. |
Definition at line 42 of file collector.php.
