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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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 <varname>$string</varname> 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 <varname>$value</varname> into a <acronym>LDIF</acronym> representation.
  32. <varname>$options</varname> is an array that may contain the following
  33. keys:
  34. <variablelist>
  35. <varlistentry>
  36. <term><code>'sort'</code></term>
  37. <listitem>
  38. <para>
  39. Sort the given attributes with <code>dn</code>
  40. following <code>objectClass</code> and following all other
  41. attributes sorted alphabetically. <constant>TRUE</constant> by
  42. default.
  43. </para>
  44. </listitem>
  45. </varlistentry>
  46. <varlistentry>
  47. <term><code>'version'</code></term>
  48. <listitem>
  49. <para>
  50. The <acronym>LDIF</acronym> format version. <code>1</code> by
  51. default.
  52. </para>
  53. </listitem>
  54. </varlistentry>
  55. <varlistentry>
  56. <term><code>'wrap'</code></term>
  57. <listitem>
  58. <para>
  59. The line-length. <code>78</code> by default to
  60. conform to the <acronym>LDIF</acronym> specification.
  61. </para>
  62. </listitem>
  63. </varlistentry>
  64. </variablelist>
  65. </entry>
  66. </row>
  67. </tbody>
  68. </tgroup>
  69. </table>
  70. </sect3>