Inheritance diagram for FindFile:

Public Member Functions | |
| __construct ($path, $file) | |
| accept () | |
| getSearch () | |
Private Attributes | |
| $file | |
Definition at line 21 of file findfile.inc.
| FindFile::__construct | ( | $ | path, | |
| $ | file | |||
| ) |
Construct from path and filename.
| $path | the directory to search in If path contains ';' then this parameter is split and every part of it is used as separate directory. | |
| $file | the name of the files to search fro |
Reimplemented in RegexFindFile.
Definition at line 33 of file findfile.inc.
00034 { 00035 $this->file = $file; 00036 $list = split(';', $path); 00037 if (count($list) <= 1) { 00038 parent::__construct(new RecursiveIteratorIterator(new RecursiveDirectoryIterator($path))); 00039 } else { 00040 $it = new AppendIterator(); 00041 foreach($list as $path) { 00042 $it->append(new RecursiveIteratorIterator(new RecursiveDirectoryIterator($path))); 00043 } 00044 parent::__construct($it); 00045 } 00046 }
| FindFile::accept | ( | ) |
Reimplemented in RegexFindFile.
Definition at line 50 of file findfile.inc.
| FindFile::getSearch | ( | ) |
Definition at line 59 of file findfile.inc.
Referenced by RegexFindFile::accept().
FindFile::$file [private] |
For internal use only.
filename to find
Definition at line 24 of file findfile.inc.
Referenced by __construct().
1.5.2