Standart
abstract class Standart
Properties
| protected | $compressor | Compressor instance |
|
| protected | $filepath | Location of source file |
|
| protected array | $filepathInfo | Rinch info about source file such as exstension, dirname etc. |
|
| protected | $resource | An object of compressor stream file |
|
| protected | $uniquePath | Randome string of file path |
Methods
An method to make stream file by compressor
Close compressor stream
Extract an existing archive file
Move exstracting file to new destination
Method to check if compressor exstension is exist or not
Add file to a new/existing archive
Add file into a folder in a new/existing archive
No description
No description
No description
No description
Details
at line 45
abstract protected
open(int $flag = 0)
An method to make stream file by compressor
at line 50
abstract protected
close()
Close compressor stream
at line 57
abstract protected
create(Closure $callback)
Create some archvie file based on callback
at line 62
abstract protected
extract()
Extract an existing archive file
at line 69
abstract protected
to(string $newDestination)
Move exstracting file to new destination
at line 77
abstract protected bool
isCompressorExists()
Method to check if compressor exstension is exist or not
at line 85
abstract protected
addFile(string $filepath, string $newFilePath = '')
Add file to a new/existing archive
at line 93
abstract protected
addFileToDirectory(string $directoryName, string $filepath)
Add file into a folder in a new/existing archive
at line 95
getFilePath()
No description
at line 100
getFilePathInfo()
No description
at line 105
getUniquePath()
No description
at line 110
protected
createDirIfnotExists(string $path, int $mode = 0755, bool $recursive = true)
No description