Zend\Ldap\Ldif\Encoder
Zend\Ldap\Ldif\Encoder provides methods to encode and decode LDAP data into/from Ldif.
Synopsis
class Encoder
{
- // members
- protected array $options;
- protected bool $versionWritten;
- // methods
- protected void __construct()
- public static array decode()
- protected array _decode()
- protected void pushAttribute()
- public static string encode()
- protected string _encode()
- protected string encodeString()
- protected string encodeAttribute()
- protected string encodeAttributes()
Members
protected
- $options
—
array
Additional options used during encoding - $versionWritten — Zend\Ldap\Ldif\bool
Methods
protected
- __construct() — Constructor.
- _decode() — Decodes the string $string into an array of Ldif items
- _encode() — Recursive driver which determines the type of value to be encoded and then dispatches to the appropriate method.
- encodeAttribute() — Encodes an attribute with $name and $value according to RFC2849
- encodeAttributes() — Encodes a collection of attributes according to RFC2849
- encodeString() — Encodes $string according to RFC2849
- pushAttribute() — Pushes a decoded attribute to the stack