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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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></emphasis>
  18. </entry>
  19. <entry>
  20. Decodes the string <varname>$string</varname> into an array of
  21. <acronym>LDIF</acronym> items.
  22. </entry>
  23. </row>
  24. <row>
  25. <entry>
  26. <emphasis><code>string encode(scalar|array|Zend_Ldap_Node
  27. $value, array $options)</code> </emphasis>
  28. </entry>
  29. <entry>
  30. Encode <varname>$value</varname> into a <acronym>LDIF</acronym>
  31. representation. <varname>$options</varname> is an array that may contain the
  32. following keys:
  33. <variablelist>
  34. <varlistentry>
  35. <term><code>'sort'</code></term>
  36. <listitem>
  37. <para>
  38. Sort the given attributes with <code>dn</code>
  39. following <code>objectClass</code> and following all other
  40. attributes sorted alphabetically. <constant>TRUE</constant>
  41. by default.
  42. </para>
  43. </listitem>
  44. </varlistentry>
  45. <varlistentry>
  46. <term><code>'version'</code></term>
  47. <listitem>
  48. <para>
  49. The <acronym>LDIF</acronym> format version. <code>1</code>
  50. by default.
  51. </para>
  52. </listitem>
  53. </varlistentry>
  54. <varlistentry>
  55. <term><code>'wrap'</code></term>
  56. <listitem>
  57. <para>
  58. The line-length. <code>78</code> by default to
  59. conform to the <acronym>LDIF</acronym> specification.
  60. </para>
  61. </listitem>
  62. </varlistentry>
  63. </variablelist>
  64. </entry>
  65. </row>
  66. </tbody>
  67. </tgroup>
  68. </table>
  69. </sect3>