Method | Description | |
---|---|---|
__construct ( $filePath, boolean $new = false, $archiveImplementation = null ) | Construct with a given path | |
addEmptyDir ( $dirName ) : void | Add an empty directory | |
addFile ( $pathToFile, $pathInArchive ) : void | Add a file to the opened Archive | |
close ( ) : void | Closes the archive and saves it | |
each ( $callback ) : void | Will loop over every item in the archive and will execute the callback on them Will provide the filename for every item | |
fileExists ( $fileInArchive ) : boolean | Checks whether the file is in the archive | |
getFileContent ( $pathInArchive ) : string | Get the content of a file | |
getFileStream ( $pathInArchive ) : mixed | Get the stream of a file | |
getStatus ( ) : string | Returns the status of the archive as a string | |
removeFile ( $pathInArchive ) : void | Remove a file permanently from the Archive | |
usePassword ( $password ) : void | Sets the password to be used for decompressing |
public __construct ( $filePath, boolean $new = false, $archiveImplementation = null ) | ||
$filePath | ||
$new | boolean | |
$archiveImplementation |
public addEmptyDir ( $dirName ) : void | ||
$dirName | ||
return | void |
public fileExists ( $fileInArchive ) : boolean | ||
$fileInArchive | ||
return | boolean |
public getFileContent ( $pathInArchive ) : string | ||
$pathInArchive | ||
return | string |
public getFileStream ( $pathInArchive ) : mixed | ||
$pathInArchive | ||
return | mixed |
public removeFile ( $pathInArchive ) : void | ||
$pathInArchive | ||
return | void |
public usePassword ( $password ) : void | ||
$password | ||
return | void |