<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) : boolean
integer
the amount in seconds of slack we will give in
determining out of dateness
boolean
whether the target is out of date
match(string $pattern, string $str, boolean $isCaseSensitive = true) : boolean
The pattern may contain two special characters:
'*' means zero or more characters
'?' means one and only one character
string
The pattern to match against.
Must not be <code>null</code>.
string
The string which must be matched against the pattern.
Must not be <code>null</code>.
boolean
Whether or not matching should be performed
case sensitively.
boolean
true
if the string matches against the pattern,
or <code>false</code> otherwise.
instance :