diff options
Diffstat (limited to 'ext/spl/examples/findfile.inc')
-rwxr-xr-x | ext/spl/examples/findfile.inc | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/ext/spl/examples/findfile.inc b/ext/spl/examples/findfile.inc deleted file mode 100755 index e0c685b659..0000000000 --- a/ext/spl/examples/findfile.inc +++ /dev/null @@ -1,25 +0,0 @@ -<?php - -/** - * @brief Base class to find files - * @author Marcus Boerger - * @version 1.0 - * - */ -class FindFile extends FilterIterator -{ - protected $file; - - function __construct($path, $file) - { - $this->file = $file; - parent::__construct(new RecursiveIteratorIterator(new RecursiveDirectoryIterator($path))); - } - - function accept() - { - return !strcmp($this->current(), $this->file); - } -} - -?>
\ No newline at end of file |