\Horde_Compress_Rar

This class allows rar files to be read.

Summary

Methods
Properties
Constants
__construct()
compress()
compressDirectory()
decompress()
$canCompress
$canDecompress
BLOCK_START
No protected methods found
$_logger
$_methods
N/A
No private methods found
No private properties found
N/A

Constants

BLOCK_START

BLOCK_START

Properties

$canCompress

$canCompress : boolean

Does this driver support compressing data?

Type

boolean

$canDecompress

$canDecompress : boolean

Does this driver support decompressing data?

Type

boolean

$_logger

$_logger : \Horde_Log_Logger

Logger

Type

\Horde_Log_Logger

$_methods

$_methods : array

Rar compression methods

Type

array

Methods

__construct()

__construct(array  $options = array()) 

Constructor.

Parameters

array $options

Additional options for the compressor backend.

compress()

compress(mixed  $data, array  $params = array()) : mixed

Compresses the data.

Parameters

mixed $data

The data to compress.

array $params

An array of arguments needed to compress the data.

Throws

\Horde_Compress_Exception

Returns

mixed —

The compressed data.

compressDirectory()

compressDirectory(string  $directory, array  $params = array()) : mixed

Compresses a directory.

Parameters

string $directory

The directory to recursively compress.

array $params

An array of arguments needed to compress the data.

Throws

\Horde_Compress_Exception

Returns

mixed —

The compressed data.

decompress()

decompress(mixed  $data, array  $params = array()) : array

Decompresses the data.

Parameters

mixed $data

The data to decompress.

array $params

An array of arguments needed to decompress the data.

Throws

\Horde_Compress_Exception

Returns

array —

Info on the compressed file:

KEY: Position in RAR archive
VALUES:
  attr - File attributes
  date - File modification time
  csize - Compressed file size
  method - Compression method
  name - Filename
  size - Original file size