<p>This is a utility class used by selectors and DirectoryScanner. The functionality more properly belongs just to selectors, but unfortunately DirectoryScanner exposed these as protected methods. Thus we have to support any subclasses of DirectoryScanner that may access these methods.
This is a Singleton.
author |
Hans Lellelid, hans@xmpl.org (Phing) |
---|---|
author |
Arnout J. Kuiper, ajkuiper@wxs.nl (Ant) |
author |
Magesh Umasankar |
author |
Bruce Atherton, bruce@callenish.com (Ant) |
package |
phing.types.selectors |
getInstance()
isOutOfDate(\PhingFile $src, \PhingFile $target, integer $granularity) : \whether
integer
the amount in seconds of slack we will give in
determining out of dateness
\whether
the target is out of date
match( $pattern, $str, $isCaseSensitive = true) : \<code>true</code>
The pattern may contain two special characters:
'*' means zero or more characters
'?' means one and only one character
\true
if the string matches against the pattern,
or <code>false</code> otherwise.
matchPath( $pattern, $str, $isCaseSensitive = true) : \<code>true</code>
\true
if the pattern matches against the string,
or <code>false</code> otherwise.
matchPatternStart( $pattern, $str, $isCaseSensitive = true) : \whether
This is not a general purpose test and should only be used if you
can live with false positives. For example, pattern=**\a
and str=b
will yield true
.
\whether
or not a given path matches the start of a given pattern up to the first "**".
instance :