phpBB API Documentation
Class

compress

class compress

Class for handling archives (compression/decompression)

Properties

$fp

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

static array methods()

Return available methods

Details

at line 37
public add_file($src, $src_rm_prefix = '', $src_add_prefix = '', $skip_files = '')

Add file to archive

Parameters

$src
$src_rm_prefix
$src_add_prefix
$skip_files

at line 107
public add_custom_file($src, $filename)

Add custom file (the filepath will not be adjusted)

Parameters

$src
$filename

at line 121
public add_data($src, $name)

Add file data

Parameters

$src
$name

at line 167
static public array methods()

Return available methods

Return Value

array Array of strings of available compression methods (.tar, .tar.gz, .zip, etc.)