[ Index ]
 

Code source de Symfony 1.0.0

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

title

Body

[fermer]

/lib/vendor/phing/util/ -> FileUtils.php (sommaire)

(pas de description)

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

Définit 1 class

FileUtils:: (5 méthodes):
  getChainedReader()
  copyFile()
  resolveFile()
  normalize()
  contentEquals()


Classe: FileUtils  - X-Ref

File utility class.
- handles os independent stuff etc
- mapper stuff
- filter stuff

getChainedReader(Reader $in, &$filterChains, Project $project)   X-Ref
Returns a new Reader with filterchains applied.  If filterchains are empty,
simply returns passed reader.

param: Reader $in Reader to modify (if appropriate).
param: array &$filterChains filter chains to apply.
param: Project $project
return: Reader Assembled Reader (w/ filter chains).

copyFile(PhingFile $sourceFile, PhingFile $destFile, $overwrite = false, $preserveLastModified = true, &$filterChains = null, Project $project)   X-Ref
Copies a file using filter chains.

param: PhingFile $sourceFile
param: PhingFile $destFile
param: boolean $overwrite
param: boolean $preserveLastModified
param: array $filterChains
param: Project $project
return: void

resolveFile($file, $filename)   X-Ref
Interpret the filename as a file relative to the given file -
unless the filename already represents an absolute filename.

param: $file the "reference" file for relative paths. This
param: $filename a file name
return: PhingFile A PhingFile object pointing to an absolute file that doesn't contain ./ or ../ sequences

normalize($path)   X-Ref
Normalize the given absolute path.

This includes:
- Uppercase the drive letter if there is one.
- Remove redundant slashes after the drive spec.
- resolve all ./, .\, ../ and ..\ sequences.
- DOS style paths that start with a drive letter will have
\ as the separator.
param: string $path Path to normalize.
return: string

contentEquals(PhingFile $file1, PhingFile $file2)   X-Ref

return: boolean Whether contents of two files is the same.



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