compress
class compress
Class for handling archives (compression/decompression)
Properties
$fp | |||
protected array | $filelist |
Methods
add_file($src, $src_rm_prefix = '', $src_add_prefix = '', $skip_files = '')
Add file to archive
add_custom_file($src, $filename)
Add custom file (the filepath will not be adjusted)
add_data($src, $name)
Add file data
string
unique_filename(string $name)
Checks if a file by that name as already been added and, if it has, returns a new, unique name.
static array
methods()
Return available methods
Details
at line 37
add_file($src, $src_rm_prefix = '', $src_add_prefix = '', $skip_files = '')
Add file to archive
at line 107
add_custom_file($src, $filename)
Add custom file (the filepath will not be adjusted)
at line 121
add_data($src, $name)
Add file data
at line 139
protected string
unique_filename(string $name)
Checks if a file by that name as already been added and, if it has, returns a new, unique name.
at line 167
static array
methods()
Return available methods