[ Index ]
 

Code source de Symfony 1.0.0

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/lib/vendor/phing/tasks/system/ -> CopyTask.php (sommaire)

(pas de description)

Poids: 401 lignes (14 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

CopyTask:: (16 méthodes):
  __construct()
  setOverwrite()
  setVerbose()
  setTstamp()
  setIncludeEmptyDirs()
  setFile()
  setTofile()
  setTodir()
  createFileSet()
  createFilterChain()
  createMapper()
  main()
  validateAttributes()
  _scan()
  buildMap()
  doWork()


Classe: CopyTask  - X-Ref

A phing copy task.  Copies a file or directory to a new file
or directory.  Files are only copied if the source file is newer
than the destination file, or when the destination file does not
exist. It is possible to explictly overwrite existing files.

__construct()   X-Ref
Sets up this object internal stuff. i.e. the Fileutils instance

return: object   The CopyTask instnace

setOverwrite($bool)   X-Ref
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.

param: boolean  Overwrite the destination file(s) if it/they already exist
return: void

setVerbose($verbosity)   X-Ref
Used to force listing of all names of copied files.

param: boolean $verbosity

setTstamp($bool)   X-Ref
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.

param: boolean  Preserve the timestamp on the destination file
return: void

setIncludeEmptyDirs($bool)   X-Ref
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.

param: boolean  Flag if empty dirs should be cpoied too
return: void

setFile(PhingFile $file)   X-Ref
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.

param: string/object  The source file. Either a string or an PhingFile object
return: void

setTofile(PhingFile $file)   X-Ref
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.

param: string/object  The dest file. Either a string or an PhingFile object
return: void

setTodir(PhingFile $dir)   X-Ref
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.

param: string/object  The directory, either a string or an PhingFile object
return: void

createFileSet()   X-Ref
Nested creator, creates a FileSet for this task

return: object  The created fileset object

createFilterChain()   X-Ref
Creates a filterchain

return: object  The created filterchain object

createMapper()   X-Ref
Nested creator, creates one Mapper for this task

return: object  The created Mapper type object

main()   X-Ref
The main entry point where everything gets in motion.

return: true on success

validateAttributes()   X-Ref
Validates attributes coming in from XML

return: void

_scan(&$fromDir, &$toDir, &$files, &$dirs)   X-Ref
Compares source files to destination files to see if they
should be copied.

return: void

buildMap(&$fromDir, &$toDir, &$names, &$mapper, &$map)   X-Ref
Builds a map of filenames (from->to) that should be copied

return: void

doWork()   X-Ref
Actually copies the files

return: void



Généré le : Fri Mar 16 22:42:14 2007 par Balluche grâce à PHPXref 0.7