File: Zend_Ldap-API-Ldap-Ldif-Encoder.xml

package info (click to toggle)
zendframework 1.12.9%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie-kfreebsd
  • size: 133,584 kB
  • sloc: xml: 1,311,829; php: 570,173; sh: 170; makefile: 125; sql: 121
file content (81 lines) | stat: -rw-r--r-- 3,222 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<?xml version="1.0" encoding="UTF-8"?>
<!-- Reviewed: no -->
<sect3 id="zend.ldap.api.reference.zend-ldap-ldif-encoder">
    <title>Zend_Ldif_Encoder</title>

    <table id="zend.ldap.api.reference.zend-ldap-ldif-encoder.table">
        <title>Zend_Ldif_Encoder API</title>

        <tgroup cols="2">
            <thead>
                <row>
                    <entry>Method</entry>
                    <entry>Description</entry>
                </row>
            </thead>

            <tbody>
                <row>
                    <entry>
                        <emphasis><code>array decode(string $string)</code></emphasis>
                    </entry>

                    <entry>
                        Decodes the string <varname>$string</varname> into an array of
                        <acronym>LDIF</acronym> items.
                    </entry>
                </row>

                <row>
                    <entry>
                        <emphasis><code>string encode(scalar|array|Zend_Ldap_Node
                        $value, array $options)</code> </emphasis>
                    </entry>

                    <entry>
                        Encode <varname>$value</varname> into a <acronym>LDIF</acronym>
                        representation. <varname>$options</varname> is an array that may contain the
                        following keys:

                        <variablelist>
                            <varlistentry>
                                <term><code>'sort'</code></term>

                                <listitem>
                                    <para>
                                        Sort the given attributes with <code>dn</code>
                                        following <code>objectClass</code> and following all other
                                        attributes sorted alphabetically. <constant>TRUE</constant>
                                        by default.
                                    </para>
                                </listitem>
                            </varlistentry>

                            <varlistentry>
                                <term><code>'version'</code></term>

                                <listitem>
                                    <para>
                                        The <acronym>LDIF</acronym> format version. <code>1</code>
                                        by default.
                                    </para>
                                </listitem>
                            </varlistentry>

                            <varlistentry>
                                <term><code>'wrap'</code></term>

                                <listitem>
                                    <para>
                                        The line-length. <code>78</code> by default to
                                        conform to the <acronym>LDIF</acronym> specification.
                                    </para>
                                </listitem>
                            </varlistentry>
                        </variablelist>
                    </entry>
                </row>
            </tbody>
        </tgroup>
    </table>
</sect3>