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
Overrides
File_Archive_Reader::getFileList() (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).)
Returns the name of the file currently read by the reader
Warning: undefined behaviour if no call to next have been done or if last call to next has returned false
Overrides
File_Archive_Reader_Relay::getFilename() (parent method not documented)
array select(
string
$filename, [boolaen
$close = true])
|
|
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
Overrides
File_Archive_Reader::select() (Move to the next file whose name is in directory $filename or is exactly $filename)
Parameters:
string unmodifyName(
string
$name)
|
|
Modify the name back to the inner reader naming style If implemented, unmodifyName(modifyName($name)) should be true
unmodifyName can be left unimplemented, this may only impact the efficiency of the select function (a full look up will be done when something more efficient with an index for example could be used on the inner reader of the original name is known).
unmodifyName may be provided some names that where not in the inner reader and that cannot possibly be the result of modifyName. In this case unmodifyName must return false.
Overridden in child classes as:
- File_Archive_Reader_ChangeName_AddDirectory::unmodifyName()
- Remove baseName from the name
- File_Archive_Reader_ChangeName_Directory::unmodifyName()
Parameters: