-
-
Discards elements that matches.
returns current sfFinder object
-
Executes function or method for each element.
Element match if functino or method returns true.
$finder->exec('myfunction');
$finder->exec(array($object, 'mymethod'));
returns current sfFinder object
-
-
(object) follow_link ()
Browse code
Symlink following.
returns current sfFinder object
-
-
(object) ignore_version_control ()
Browse code
Ignores version control directories.
Currently supports Subversion, CVS, DARCS, Gnu Arch, Monotone, Bazaar-NG, GIT, Mercurial
returns current pakeFinder object
-
Searches files and directories which match defined rules.
returns list of files and directories
-
-
-
-
-
Sets maximum directory depth.
Finder will descend at most $level levels of directories below the starting point.
returns current sfFinder object
-
Sets minimum directory depth.
Finder will start applying tests at level $level.
returns current sfFinder object
-
Adds rules that files must match.
You can use patterns (delimited with / sign), globs or simple strings.
$finder->name('*.php')
$finder->name('/\.php$/') // same as above
$finder->name('test.php')
returns current sfFinder object
-
Adds rules that files must not match.
returns current sfFinder object
-
Traverses no further.
returns current sfFinder object
-
Returns relative paths for all files and directories.
returns current sfFinder object
-
-
Adds tests for file sizes.
$finder->size('> 10K');
$finder->size('<= 1Ki');
$finder->size(4);
returns current sfFinder object
-
-
-
Sets the type of elements to returns.
returns new sfFinder object