Zend\Filter\Compress\Zip
Compression adapter for zip
Synopsis
class Zip
extends AbstractCompressionAlgorithm
{
- // members
- protected array $options;
- // Inherited members from AbstractCompressionAlgorithm
- protected array $options;
- // methods
- public void __construct()
- public string getArchive()
- public self setArchive()
- public string getTarget()
- public self setTarget()
- public string compress()
- public string decompress()
- public string errorString()
- public string toString()
- // Inherited methods from AbstractCompressionAlgorithm
- public void __construct()
- public mixed getOptions()
- public self setOptions()
Hierarchy
Members
protected
- $options
—
array
Compression Options array( 'archive' => Archive to use 'password' => Password to use 'target' => Target to write the files to ) - $options — array
Methods
public
- __construct() — Class constructor
- compress() — Compresses the given content
- decompress() — Decompresses the given content
- errorString() — Returns the proper string based on the given error constant
- getArchive() — Returns the set archive
- getTarget() — Returns the set targetpath
- setArchive() — Sets the archive to use for de-/compression
- setTarget() — Sets the target to use
- toString() — Returns the adapter name
Inherited from Zend\Filter\Compress\AbstractCompressionAlgorithm
public
- getOptions() — Returns one or all set options
- setOptions() — Sets all or one option