apidoc
[ class tree: apidoc ] [ index: apidoc ] [ all elements ]

Class: File_Archive_Writer_Zip

Source Location: /File_Archive-0.2.0/File/Archive/Writer/Zip.php

Class Overview

File_Archive_Writer
   |
   --File_Archive_Writer_Archive
      |
      --File_Archive_Writer_MemoryArchive
         |
         --File_Archive_Writer_Zip

ZIP archive writer


Methods


Inherited Variables

Inherited Methods

Class: File_Archive_Writer_MemoryArchive

File_Archive_Writer_MemoryArchive::File_Archive_Writer_MemoryArchive()
File_Archive_Writer_MemoryArchive::appendFile()
The subclass may rewrite this class if it knows an efficient way to treat a physical file.
File_Archive_Writer_MemoryArchive::appendFileData()
The subclass must treat the data $data $data is the entire data of the filename $filename $stat is the stat of the file
File_Archive_Writer_MemoryArchive::close()
File_Archive_Writer_MemoryArchive::newFile()
File_Archive_Writer_MemoryArchive::sendFooter()
The subclass may rewrite the sendFooter function if it needs to execute code before closing the archive
File_Archive_Writer_MemoryArchive::sendHeader()
The subclass may rewrite the sendHeader function if it needs to execute code before the first file
File_Archive_Writer_MemoryArchive::writeData()
File_Archive_Writer_MemoryArchive::writeFile()

Class: File_Archive_Writer_Archive

File_Archive_Writer_Archive::File_Archive_Writer_Archive()
File_Archive_Writer_Archive::close()
File_Archive_Writer_Archive::getMime()

Class: File_Archive_Writer

File_Archive_Writer::close()
Close the writer, eventually flush the data, write the footer...
File_Archive_Writer::newFile()
Create a new file in the writer
File_Archive_Writer::writeData()
Append the specified data to the writer
File_Archive_Writer::writeFile()
Append the content of the physical file $filename to the writer writeFile($filename) must be equivalent to writeData(file_get_contents($filename)) but can be more efficient

Class Details

[line 37]
ZIP archive writer


[ Top ]


Method Detail

File_Archive_Writer_Zip (Constructor)   [line 63]

File_Archive_Writer_Zip File_Archive_Writer_Zip( mixed $filename, mixed &$innerWriter, [mixed $stat = array()], [mixed $autoClose = true])


[ Top ]

appendFileData   [line 92]

void appendFileData( mixed $filename, mixed $stat, mixed $data)

  • Access: protected
  • See: File_Archive_Writer_MemoryArchive::appendFileData()

Overrides File_Archive_Writer_MemoryArchive::appendFileData() (The subclass must treat the data $data $data is the entire data of the filename $filename $stat is the stat of the file)
[ Top ]

getMime   [line 160]

void getMime( )

  • See: File_Archive_Writer::getMime()

Overrides File_Archive_Writer_Archive::getMime() (parent method not documented)
[ Top ]

sendFooter   [line 145]

void sendFooter( )

  • Access: protected
  • See: File_Archive_Writer_MemoryArchive::sendFooter()

Overrides File_Archive_Writer_MemoryArchive::sendFooter() (The subclass may rewrite the sendFooter function if it needs to execute code before closing the archive)
[ Top ]

setComment   [line 86]

void setComment( mixed $comment)

Set a comment on the ZIP file

[ Top ]

setCompressionLevel   [line 78]

void setCompressionLevel( Int $compressionLevel)

Change the level of the compression. This may be done between two files

Parameters:

Int   $compressionLevel     New compression level from 0 to 9

[ Top ]


Documentation generated on Thu, 24 Feb 2005 12:50:22 -0500 by phpDocumentor 1.2.3. PEAR Logo Copyright © PHP Group 2004.