close [line 223]
extract [line 266]
void extract(
&$writer, [bool
$autoClose = true], [int
$bufferSize = 102400], File_Archive_Writer
$writer)
|
|
Sends the whole reader to $writer and close the reader
Parameters:
extractFile [line 311]
void extractFile(
string
$filename,
&$writer, [bool
$autoClose = true], [int
$bufferSize = 8192], File_Archive_Writer
$writer)
|
|
Extract only one file (given by the URL)
Parameters:
getData [line 180]
getDataFilename [line 172]
getFileList [line 131]
Returns the list of filenames from the current pos to the end of the source The source will be closed after having called this function This function goes through the whole archive (which may be slow).
If you intend to work on the reader, doing it in one pass would be faster
getFilename [line 118]
getMime [line 158]
getStandardURL [line 95]
void getStandardURL(
string
$path)
|
|
Returns the standard path
Changes \ to / Removes the .. and . from the URL
Parameters:
getStat [line 152]
makeAppendWriter [line 345]
makeWriterRemove [line 370]
Returns a writer that removes the current file
This is a syntaxic sugar for makeWriterRemoveFiles(new File_Archive_Predicate_Current());
makeWriterRemoveBlocks [line 400]
makeWriterRemoveFiles [line 361]
next [line 48]
remove [line 379]
Removes the current file from the reader
rewind [line 211]
select [line 61]
bool select(
string
$filename, [bool
$close = true])
|
|
Move to the next file whose name is in directory $filename or is exactly $filename
Overridden in child classes as:
- File_Archive_Reader_Uncompress::select()
Parameters:
sendData [line 232]
void sendData(
&$writer, [
$bufferSize = 102400])
|
|
Sends the current file to the Writer $writer
The data will be sent by chunks of at most $bufferSize bytes
Parameters:
skip [line 191]