Zend_Ldap-API-Ldap-Ldif-Encoder.xml 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!-- Reviewed: no -->
  3. <sect3 id="zend.ldap.api.reference.zend-ldap-ldif-encoder">
  4. <title>Zend_Ldif_Encoder</title>
  5. <table id="zend.ldap.api.reference.zend-ldap-ldif-encoder.table">
  6. <title>Zend_Ldif_Encoder API</title>
  7. <tgroup cols="2">
  8. <thead>
  9. <row>
  10. <entry>Method</entry>
  11. <entry>Description</entry>
  12. </row>
  13. </thead>
  14. <tbody>
  15. <row>
  16. <entry>
  17. <emphasis><code>array decode(string $string)</code>
  18. </emphasis>
  19. </entry>
  20. <entry>
  21. Decodes the string <code>$string</code> into an array of
  22. <acronym>LDIF</acronym> items.
  23. </entry>
  24. </row>
  25. <row>
  26. <entry>
  27. <emphasis><code>string encode(scalar|array|Zend_Ldap_Node
  28. $value, array $options)</code> </emphasis>
  29. </entry>
  30. <entry>
  31. Encode <code>$value</code> into a <acronym>LDIF</acronym> representation.
  32. <code>$options</code> is an array that may contain the following
  33. keys:
  34. <variablelist>
  35. <varlistentry>
  36. <term><code>'sort'</code></term>
  37. <listitem>Sort the given attributes with <code>dn</code>
  38. following <code>objectClass</code> and following all other
  39. attributes sorted alphabetically. <code>true</code> by
  40. default.</listitem>
  41. </varlistentry>
  42. <varlistentry>
  43. <term><code>'version'</code></term>
  44. <listitem>The <acronym>LDIF</acronym> format version. <code>1</code> by
  45. default.</listitem>
  46. </varlistentry>
  47. <varlistentry>
  48. <term><code>'wrap'</code></term>
  49. <listitem>The line-length. <code>78</code> by default to
  50. conform to the <acronym>LDIF</acronym> specification.</listitem>
  51. </varlistentry>
  52. </variablelist>
  53. </entry>
  54. </row>
  55. </tbody>
  56. </tgroup>
  57. </table>
  58. </sect3>