1091. Class

1091.1. Zend\Ldap\Ldif\Encoder

ZendLdapLdifEncoder provides methods to encode and decode LDAP data into/from Ldif.

1091.1.1. Methods

1091.1.1.1. __construct

__construct()

Constructor.

Parameters:array – Additional options used during encoding

1091.1.1.2. decode

decode()

Decodes the string $string into an array of Ldif items

Parameters:string
Return type:array

1091.1.1.3. _decode

_decode()

Decodes the string $string into an array of Ldif items

Parameters:string
Return type:array

1091.1.1.4. pushAttribute

pushAttribute()

Pushes a decoded attribute to the stack

Parameters:
  • array
  • array

1091.1.1.5. encode

encode()

Encode $value into a Ldif representation

Parameters:
  • mixed – The value to be encoded
  • array – Additional options used during encoding
Return type:

string The encoded value

1091.1.1.6. _encode

_encode()

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

Parameters:mixed – The value to be encoded
Return type:string Encoded value

1091.1.1.7. encodeString

encodeString()

Encodes $string according to RFC2849

Parameters:
  • string
  • bool
Return type:

string

1091.1.1.8. encodeAttribute

encodeAttribute()

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

Parameters:
  • string
  • array|string
Return type:

string

1091.1.1.9. encodeAttributes

encodeAttributes()

Encodes a collection of attributes according to RFC2849

Parameters:array
Return type:string