PHP 클래스 Horde_Pack, horde

저자: Michael Slusarz ([email protected])
파일 보기 프로젝트 열기: horde/horde 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$_compress Horde_Compress_Fast Instance of Horde_Compress_Fast shared between all instances.
$_drivers array Drivers. Shared between all instances.

공개 메소드들

메소드 설명
__construct ( ) Constructor.
__sleep ( )
pack ( mixed $data, array $opts = [] ) : string Pack a string.
unpack ( string $data ) : mixed Unpack a string.

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( )

__sleep() 공개 메소드

public __sleep ( )

pack() 공개 메소드

Pack a string.
public pack ( mixed $data, array $opts = [] ) : string
$data mixed The data to pack.
$opts array Additional options:
  - compress: (mixed) If false, don't use compression. If true, uses
              default compress length (DEFAULT). If 0, always compress.
              All other integer values: compress only if data is
              greater than this string length.
  - drivers: (array) Only use these drivers to pack. By default, driver
             to use is auto-determined.
  - phpob: (boolean) If true, the data contains PHP serializable
           objects (i.e. objects that have a PHP-specific serialized
           representation). If false, the data does not contain any of
           these objects. If not present, will auto-determine
           existence of these objects.
리턴 string The packed string.

unpack() 공개 메소드

Unpack a string.
public unpack ( string $data ) : mixed
$data string The packed string.
리턴 mixed The unpacked data.

프로퍼티 상세

$_compress 보호되어 있는 정적으로 프로퍼티

Instance of Horde_Compress_Fast shared between all instances.
protected static Horde_Compress_Fast $_compress
리턴 Horde_Compress_Fast

$_drivers 보호되어 있는 정적으로 프로퍼티

Drivers. Shared between all instances.
protected static array $_drivers
리턴 array