[ 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/ -> AppendTask.php (sommaire)

(pas de description)

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

Définit 1 class

AppendTask:: (11 méthodes):
  setFile()
  setTo()
  setDestFile()
  createFileList()
  createFileSet()
  createFilterChain()
  setText()
  addText()
  main()
  appendFiles()
  appendFile()


Classe: AppendTask  - X-Ref

Appends text, contents of a file or set of files defined by a filelist to a destination file.

<code>
<append text="And another thing\n" destfile="badthings.log"/>
</code>
OR
<code>
<append file="header.html" destfile="fullpage.html"/>
<append file="body.html" destfile="fullpage.html"/>
<append file="footer.html" destfile="fullpage.html"/>
</code>
OR
<code>
<append destfile="${process.outputfile}">
<filterchain>
<xsltfilter style="${process.stylesheet}">
<param name="mode" expression="${process.xslt.mode}"/>
<param name="file_name" expression="%{task.append.current_file.basename}"/> <!-- Example of using a RegisterSlot variable -->
</xsltfilter>
</filterchain>
<filelist dir="book/" listfile="book/PhingGuide.book"/>
</append>
</code>
setFile(PhingFile $f)   X-Ref
Pas de description

setTo(PhingFile $f)   X-Ref
Set target file to append to.


setDestFile(PhingFile $f)   X-Ref
The more conventional naming for method to set destination file.

param: PhingFile $f

createFileList()   X-Ref
Supports embedded <filelist> element.

return: FileList

createFileSet()   X-Ref
Nested creator, adds a set of files (nested <fileset> attribute).
This is for when you don't care what order files get appended.

return: FileSet

createFilterChain()   X-Ref
Creates a filterchain

return: FilterChain The created filterchain object

setText($txt)   X-Ref
Sets text to append.  (cannot be used in conjunction w/ files or filesets).

param: string $txt

addText($txt)   X-Ref
Sets text to append. Supports CDATA.

param: string $txt

main()   X-Ref
Pas de description

appendFiles(FileWriter $writer, $files, PhingFile $dir)   X-Ref
Append an array of files in a directory.

param: FileWriter $writer The FileWriter that is appending to target file.
param: array $files array of files to delete; can be of zero length
param: PhingFile $dir directory to work from

appendFile(FileWriter $writer, PhingFile $f)   X-Ref
Pas de description



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