Zend Framework  1.12
Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Zend_Ldap_Ldif_Encoder Class Reference

Static Public Member Functions

static decode ($string)
 Decodes the string $string into an array of LDIF items.
 
static encode ($value, array $options=array())
 Encode $value into a LDIF representation.
 

Protected Member Functions

 __construct (array $options=array())
 Constructor.
 
 _decode ($string)
 Decodes the string $string into an array of LDIF items.
 
 _pushAttribute (array $attribute, array &$entry)
 Pushes a decoded attribute to the stack.
 
 _encode ($value)
 Recursive driver which determines the type of value to be encoded and then dispatches to the appropriate method.
 
 _encodeString ($string, &$base64=null)
 Encodes $string according to RFC2849.
 
 _encodeAttribute ($name, $value)
 Encodes an attribute with $name and $value according to RFC2849.
 
 _encodeAttributes (array $attributes)
 Encodes a collection of attributes according to RFC2849.
 

Protected Attributes

 $_options
 
 $_versionWritten = false
 

Constructor & Destructor Documentation

__construct ( array  $options = array())
protected

Constructor.

Parameters
array$optionsAdditional options used during encoding
Returns
void

Member Function Documentation

_decode (   $string)
protected

Decodes the string $string into an array of LDIF items.

Parameters
string$string
Returns
array
_encode (   $value)
protected

Recursive driver which determines the type of value to be encoded and then dispatches to the appropriate method.

Parameters
mixed$valueThe value to be encoded
Returns
string Encoded value
_encodeAttribute (   $name,
  $value 
)
protected

Encodes an attribute with $name and $value according to RFC2849.

string $name array|string $value string

_encodeAttributes ( array  $attributes)
protected

Encodes a collection of attributes according to RFC2849.

array $attributes string

_encodeString (   $string,
$base64 = null 
)
protected

Encodes $string according to RFC2849.

string $string boolen $base64 string

_pushAttribute ( array  $attribute,
array &  $entry 
)
protected

Pushes a decoded attribute to the stack.

Parameters
array$attribute
array$entry
static decode (   $string)
static

Decodes the string $string into an array of LDIF items.

Parameters
string$string
Returns
array
static encode (   $value,
array  $options = array() 
)
static

Encode $value into a LDIF representation.

Parameters
mixed$valueThe value to be encoded
array$optionsAdditional options used during encoding
Returns
string The encoded value

Member Data Documentation

$_options
protected
Initial value:
= array(
'sort' => true,
'version' => 1,
'wrap' => 78
)
$_versionWritten = false
protected