1 <?xml version="1.0" encoding="UTF-8"?>
3 <sect3 id="zend.ldap.api.reference.zend-ldap-ldif-encoder">
4 <title>Zend_Ldif_Encoder</title>
6 <table id="zend.ldap.api.reference.zend-ldap-ldif-encoder.table">
7 <title>Zend_Ldif_Encoder API</title>
13 <entry>Description</entry>
20 <emphasis><code>array decode(string $string)</code></emphasis>
24 Decodes the string <varname>$string</varname> into an array of
25 <acronym>LDIF</acronym> items.
31 <emphasis><code>string encode(scalar|array|Zend_Ldap_Node
32 $value, array $options)</code> </emphasis>
36 Encode <varname>$value</varname> into a <acronym>LDIF</acronym>
37 representation. <varname>$options</varname> is an array that may contain the
42 <term><code>'sort'</code></term>
46 Sort the given attributes with <code>dn</code>
47 following <code>objectClass</code> and following all other
48 attributes sorted alphabetically. <constant>TRUE</constant>
55 <term><code>'version'</code></term>
59 The <acronym>LDIF</acronym> format version. <code>1</code>
66 <term><code>'wrap'</code></term>
70 The line-length. <code>78</code> by default to
71 conform to the <acronym>LDIF</acronym> specification.