SourceFileScanner

Utility class that collects the functionality of the various scanDir methods that have been scattered in several tasks before.

The only method returns an array of source files. The array is a subset of the files given as a parameter and holds only those that are newer than their corresponding target files.

package

phing.util

Methods

__construct

__construct( $task) 

Arguments

$task

Restrict the given set of files to those that are newer than their corresponding target files.

restrict( &$files,  $srcDir,  $destDir,  $mapper,  $force = false) 

Arguments

$files

$srcDir

$destDir

$mapper

$force

Convenience layer on top of restrict that returns the source files as PhingFile objects (containing absolute paths if srcDir is absolute).

restrictAsFiles( &$files,  &$srcDir,  &$destDir,  &$mapper) 

Arguments

$files

$srcDir

$destDir

$mapper

Properties

Instance of FileUtils

fileUtils : 

Type(s)

Task this class is working for -- for logging purposes.

task : 

Type(s)