Property | Type | Description | |
---|---|---|---|
$completeDirMap | asoc array containing mapped file names | ||
$destDir | the destiantion file (from xml attribute) | ||
$destFile | the source file (from xml attribute) | ||
$dirCopyMap | asoc array containing mapped file names | ||
$file | |||
$fileCopyMap | |||
$fileUtils | asoc array containing complete dir names | ||
$filesets | a instance of fileutils | ||
$filterChains | all fileset objects assigned to this task | ||
$flatten | include empty dirs? (from XML) | ||
$includeEmpty | sync timestamps (from xml attribute) | ||
$mapperElement | apply the FlattenMapper right way (from XML) | ||
$overwrite | the destination dir (from xml attribute) | ||
$preserveLMT | overwrite destination (from xml attribute) | ||
$verbosity | all filterchains objects assigned to this task |
Method | Description | |
---|---|---|
__construct ( ) : object | Sets up this object internal stuff. i.e. the Fileutils instance | |
createFileSet ( ) : object | Nested creator, creates a FileSet for this task | |
createFilterChain ( ) : object | Creates a filterchain | |
createMapper ( ) : object | Nested creator, creates one Mapper for this task | |
main ( ) : true | The main entry point where everything gets in motion. | |
setFile ( PhingFile $file ) : void | Set the file. We have to manually take care of the type that is coming due to limited type support in php in and convert it manually if neccessary. | |
setIncludeEmptyDirs ( $bool ) : void | Set the include empty dirs flag. IntrospectionHelper takes care of booleans in set* methods so we can assume that the right value (boolean primitive) is coming in here. | |
setOverwrite ( $bool ) : void | Set the overwrite flag. IntrospectionHelper takes care of booleans in set* methods so we can assume that the right value (boolean primitive) is coming in here. | |
setTodir ( PhingFile $dir ) : void | Set the toDir. We have to manually take care of the type that is coming due to limited type support in php in and convert it manually if neccessary. | |
setTofile ( PhingFile $file ) : void | Set the toFile. We have to manually take care of the type that is coming due to limited type support in php in and convert it manually if neccessary. | |
setTstamp ( $bool ) : void | Set the preserve timestmap flag. IntrospectionHelper takes care of booleans in set* methods so we can assume that the right value (boolean primitive) is coming in here. | |
setVerbose ( boolean $verbosity ) | Used to force listing of all names of copied files. |
Method | Description | |
---|---|---|
doWork ( ) : void | Actually copies the files | |
validateAttributes ( ) : void | Validates attributes coming in from XML |
Method | Description | |
---|---|---|
_scan ( &$fromDir, &$toDir, &$files, &$dirs ) : void | Compares source files to destination files to see if they should be copied. | |
buildMap ( &$fromDir, &$toDir, &$names, &$mapper, &$map ) : void | Builds a map of filenames (from->to) that should be copied |
public __construct ( ) : object | ||
return | object | The CopyTask instnace |
public createFileSet ( ) : object | ||
return | object | The created fileset object |
public createFilterChain ( ) : object | ||
return | object | The created filterchain object |
public createMapper ( ) : object | ||
return | object | The created Mapper type object |
public main ( ) : true | ||
return | true | on success |
public setIncludeEmptyDirs ( $bool ) : void | ||
return | void |
public setOverwrite ( $bool ) : void | ||
return | void |
public setVerbose ( boolean $verbosity ) | ||
$verbosity | boolean |
protected validateAttributes ( ) : void | ||
return | void |
protected $completeDirMap |
protected $filterChains |
protected $mapperElement |
protected $preserveLMT |