| [ Index ] |
PHP Cross Reference of Limb3 |
[Source view] [Print] [Project Stats]
This file contains the following classes: {@link SimpleCollector}, {@link SimplePatternCollector}.
| Author: | Travis Swicegood <development@domain51.com> |
| Version: | $Id: collector.php 5999 2007-06-18 13:13:08Z pachanga $ |
| File Size: | 122 lines (4 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
SimpleCollector:: (4 methods):
_removeTrailingSlash()
collect()
_handle()
_isHidden()
SimplePatternCollector:: (2 methods):
SimplePatternCollector()
_handle()
Class: SimpleCollector - X-Ref
The basic collector for {@link GroupTest}| _removeTrailingSlash($path) X-Ref |
| Strips off any kind of slash at the end so as to normalise the path. param: string $path Path to normalise. return: string Path without trailing slash. |
| collect(&$test, $path) X-Ref |
| Scans the directory and adds what it can. param: object $test Group test with {@link GroupTest::addTestFile()} method. param: string $path Directory to scan. |
| _handle(&$test, $file) X-Ref |
| This method determines what should be done with a given file and adds it via {@link 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 {@link SimplePatternCollector::_handle()}. param: object $test Group test with {@link GroupTest::addTestFile()} method. param: string $filename A filename as generated by {@link collect()} |
| _isHidden($filename) X-Ref |
| Tests for hidden files so as to skip them. Currently only tests for Unix hidden files. param: string $filename Plain filename. return: boolean True if hidden file. |
Class: SimplePatternCollector - X-Ref
An extension to {@link SimpleCollector} that only adds files matching a| SimplePatternCollector($pattern = '/php$/i') X-Ref |
param: string $pattern Perl compatible regex to test name against |
| _handle(&$test, $filename) X-Ref |
| Attempts to add files that match a given pattern. param: object $test Group test with {@link GroupTest::addTestFile()} method. param: string $path Directory to scan. |
| Generated: Tue Oct 7 05:02:03 2008 | Cross-referenced by PHPXref 0.7 |