SPL-StandardPHPLibrary
regexfindfile.inc
Go to the documentation of this file.
1 <?php
2 
18 class RegexFindFile extends FindFile
19 {
27  function __construct($path, $regex)
28  {
29  parent::__construct($path, $regex);
30  }
31 
34  function accept()
35  {
36  return preg_match($this->getSearch(), $this->current());
37  }
38 }
39 
40 ?>
getSearch()
Definition: findfile.inc:59
__construct($path, $regex)
Construct from path and regular expression.
Find files by regular expression.
Base class to find files.
Definition: findfile.inc:21