PHP Class Horde_Compress_Fast, horde

Author: Michael Slusarz ([email protected])
ファイルを表示 Open project: horde/horde Class Usage Examples

Protected Properties

Property Type Description
$_compress Horde_Compress_Fast_Base Compression driver

Public Methods

Method Description
__construct ( array $opts = [] ) Constructor.
__get ( $name )
compress ( string $text ) : string Compresses a string.
decompress ( string $text ) : string Decompresses a string.

Method Details

__construct() public method

Constructor.
public __construct ( array $opts = [] )
$opts array Options:
  - drivers: (array) A list of driver names (Horde_Compress_Fast_Base
             class names) to use instead of auto-detecting.
  - zlib: (boolean) Consider zlib to be a "fast" compression algorithm.
          Only used if 'drivers' is empty. (@since 1.1.0).

__get() public method

public __get ( $name )

compress() public method

Compresses a string.
public compress ( string $text ) : string
$text string The string to compress.
return string The compressed string.

decompress() public method

Decompresses a string.
public decompress ( string $text ) : string
$text string The compressed string.
return string The decompressed string.

Property Details

$_compress protected_oe property

Compression driver
protected Horde_Compress_Fast_Base $_compress
return Horde_Compress_Fast_Base