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

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