Compression adapter for Rar

category Zend
package Zend_Filter
copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
license New BSD License
inherited_from \Zend_Filter_Compress_CompressAbstract

 Methods

Class constructor

__construct(array $options = null
inherited_from \Zend_Filter_Compress_CompressAbstract::__construct()

Parameters

$options

array

(Optional) Options to set

Class constructor

__construct(array|\Zend_Config $options = null
Inherited

Parameters

$options

array\Zend_Config

(Optional) Options to set

Compresses the given content

compress(string|array $content) : string

Parameters

$content

stringarray

Returns

string

Decompresses the given content

decompress(string $content) : boolean

Parameters

$content

string

Returns

boolean

Returns the set archive

getArchive() : string

Returns

string

Returns the set callback for compression

getCallback() : string

Returns

string

Returns one or all set options

getOptions(string $option = null) : mixed
Inherited

Parameters

$option

string

(Optional) Option to return

Returns

mixed

Returns the set password

getPassword() : string

Returns

string

Returns the set targetpath

getTarget() : string

Returns

string

Sets the archive to use for de-/compression

setArchive(string $archive) : \Zend_Filter_Compress_Rar

Parameters

$archive

string

Archive to use

Returns

\Zend_Filter_Compress_Rar

Sets the callback to use

setCallback(string $callback) : \Zend_Filter_Compress_Rar

Parameters

$callback

string

Returns

\Zend_Filter_Compress_Rar

Sets all or one option

setOptions(array $options) : \Zend_Filter_Compress_Bz2
Inherited

Parameters

$options

array

Returns

\Zend_Filter_Compress_Bz2

Sets the password to use

setPassword(string $password) : \Zend_Filter_Compress_Rar

Parameters

$password

string

Returns

\Zend_Filter_Compress_Rar

Sets the targetpath to use

setTarget(string $target) : \Zend_Filter_Compress_Rar

Parameters

$target

string

Returns

\Zend_Filter_Compress_Rar

Returns the adapter name

toString() : string

Returns

string

 Properties

 

Compression Options array( 'callback' => Callback for compression 'archive' => Archive to use 'password' => Password to use 'target' => Target to write the files to )

$_options : array

Default

array('callback' => null, 'archive' => null, 'password' => null, 'target' => '.')