\Horde_Pack_Driver

Abstract driver class for implementing a pack driver.

Summary

Methods
Properties
Constants
supported()
__get()
pack()
unpack()
$id
$phpob
No constants found
No protected methods found
$_id
$_phpob
N/A
No private methods found
No private properties found
N/A

Properties

$id

$id : integer

The single-byte identifier for this driver (also used as priority).

Type

integer

$phpob

$phpob : boolean

Supports packing PHP objects?

Type

boolean

$_id

$_id : integer

Identifer for this driver. Each driver needs a unique priority.

Type

integer

$_phpob

$_phpob : boolean

Does this driver support packing PHP objects?

Type

boolean

Methods

supported()

supported() : boolean

Is this driver supported on this system?

Returns

boolean —

True if supported.

__get()

__get(  $name) 

Parameters

$name

pack()

pack(mixed  $data) : string

Pack a string.

Parameters

mixed $data

The data to pack.

Throws

\Horde_Pack_Exception

Returns

string —

The packed string.

unpack()

unpack(string  $data) : mixed

Unpack a string.

Parameters

string $data

The packed string.

Throws

\Horde_Pack_Exception

Returns

mixed —

The unpacked data.