reference/ldap/functions/ldap-mod-add.xml
b7cbd468cb4c46d55d43a44cade0eb4590d25dea
...
...
@@ -10,15 +10,14 @@
10
10
&reftitle.description;
11
11
<methodsynopsis>
12
12
<type>bool</type><methodname>ldap_mod_add</methodname>
13
-
<methodparam><type>resource</type><parameter>link_identifier</parameter></methodparam>
13
+
<methodparam><type>LDAP\Connection</type><parameter>ldap</parameter></methodparam>
14
14
<methodparam><type>string</type><parameter>dn</parameter></methodparam>
15
15
<methodparam><type>array</type><parameter>entry</parameter></methodparam>
16
+
<methodparam choice="opt"><type class="union"><type>array</type><type>null</type></type><parameter>controls</parameter><initializer>&null;</initializer></methodparam>
16
17
</methodsynopsis>
17
18
<para>
18
-
Adds one or more attributes to the specified <parameter>dn</parameter>.
19
-
It performs the modification at the attribute level as opposed to the
20
-
object level. Object-level additions are done by the
21
-
<function>ldap_add</function> function.
19
+
Adds one or more attribute values to the specified <parameter>dn</parameter>.
20
+
To add a whole new object see <function>ldap_add</function> function.
22
21
</para>
23
22
</refsect1>
24
23

...
...
@@ -27,10 +26,10 @@
27
26
<para>
28
27
<variablelist>
29
28
<varlistentry>
30
-
<term><parameter>link_identifier</parameter></term>
29
+
<term><parameter>ldap</parameter></term>
31
30
<listitem>
32
31
<para>
33
-
An LDAP link identifier, returned by <function>ldap_connect</function>.
32
+
&ldap.parameter.ldap;
34
33
</para>
35
34
</listitem>
36
35
</varlistentry>
...
...
@@ -46,6 +45,15 @@
46
45
<term><parameter>entry</parameter></term>
47
46
<listitem>
48
47
<para>
48
+
An associative array listing the attirbute values to add. If an attribute was not existing yet it will be added. If an attribute is existing you can only add values to it if it supports multiple values.
49
+
</para>
50
+
</listitem>
51
+
</varlistentry>
52
+
<varlistentry>
53
+
<term><parameter>controls</parameter></term>
54
+
<listitem>
55
+
<para>
56
+
Array of <link linkend="ldap.controls">LDAP Controls</link> to send with the request.
49
57
</para>
50
58
</listitem>
51
59
</varlistentry>
...
...
@@ -60,6 +68,32 @@
60
68
</para>
61
69
</refsect1>
62
70

71
+
<refsect1 role="changelog">
72
+
&reftitle.changelog;
73
+
<para>
74
+
<informaltable>
75
+
<tgroup cols="2">
76
+
<thead>
77
+
<row>
78
+
<entry>&Version;</entry>
79
+
<entry>&Description;</entry>
80
+
</row>
81
+
</thead>
82
+
<tbody>
83
+
&ldap.changelog.ldap-object;
84
+
&ldap.changelog.controls-nullable;
85
+
<row>
86
+
<entry>7.3.0</entry>
87
+
<entry>
88
+
Support for <parameter>controls</parameter> added
89
+
</entry>
90
+
</row>
91
+
</tbody>
92
+
</tgroup>
93
+
</informaltable>
94
+
</para>
95
+
</refsect1>
96
+

63
97
<refsect1 role="notes">
64
98
&reftitle.notes;
65
99
&note.bin-safe;
...
...
@@ -69,14 +103,15 @@
69
103
&reftitle.seealso;
70
104
<para>
71
105
<simplelist>
106
+
<member><function>ldap_mod_add_ext</function></member>
72
107
<member><function>ldap_mod_del</function></member>
73
108
<member><function>ldap_mod_replace</function></member>
109
+
<member><function>ldap_modify_batch</function></member>
74
110
</simplelist>
75
111
</para>
76
112
</refsect1>
77
113

78
114
</refentry>
79
-

80
115
<!-- Keep this comment at the end of the file
81
116
Local variables:
82
117
mode: sgml
83
118