reference/ldap/functions/ldap-count-entries.xml
bc90525a5a5ebcf8412ef34b8355d2de12166fff
...
...
@@ -10,8 +10,8 @@
10
10
&reftitle.description;
11
11
<methodsynopsis>
12
12
<type>int</type><methodname>ldap_count_entries</methodname>
13
-
<methodparam><type>resource</type><parameter>link_identifier</parameter></methodparam>
14
-
<methodparam><type>resource</type><parameter>result_identifier</parameter></methodparam>
13
+
<methodparam><type>LDAP\Connection</type><parameter>ldap</parameter></methodparam>
14
+
<methodparam><type>LDAP\Result</type><parameter>result</parameter></methodparam>
15
15
</methodsynopsis>
16
16
<para>
17
17
Returns the number of entries stored in the result of previous search
...
...
@@ -24,18 +24,18 @@
24
24
<para>
25
25
<variablelist>
26
26
<varlistentry>
27
-
<term><parameter>link_identifier</parameter></term>
27
+
<term><parameter>ldap</parameter></term>
28
28
<listitem>
29
29
<para>
30
-
An LDAP link identifier, returned by <function>ldap_connect</function>.
30
+
&ldap.parameter.ldap;
31
31
</para>
32
32
</listitem>
33
33
</varlistentry>
34
34
<varlistentry>
35
-
<term><parameter>result_identifier</parameter></term>
35
+
<term><parameter>result</parameter></term>
36
36
<listitem>
37
37
<para>
38
-
The internal LDAP result.
38
+
&ldap.parameter.result;
39
39
</para>
40
40
</listitem>
41
41
</varlistentry>
...
...
@@ -46,22 +46,39 @@
46
46
<refsect1 role="returnvalues">
47
47
&reftitle.returnvalues;
48
48
<para>
49
-
Returns number of entries in the result or &false; on error.
49
+
Returns number of entries in the result,&return.falseforfailure;.
50
50
</para>
51
51
</refsect1>
52
52

53
+
<refsect1 role="changelog">
54
+
&reftitle.changelog;
55
+
<informaltable>
56
+
<tgroup cols="2">
57
+
<thead>
58
+
<row>
59
+
<entry>&Version;</entry>
60
+
<entry>&Description;</entry>
61
+
</row>
62
+
</thead>
63
+
<tbody>
64
+
&ldap.changelog.ldap-object;
65
+
&ldap.changelog.result-object;
66
+
</tbody>
67
+
</tgroup>
68
+
</informaltable>
69
+
</refsect1>
53
70

54
71
<refsect1 role="examples">
55
72
&reftitle.examples;
56
73
<para>
57
74
<example xml:id="ldap-count-entries.example.basic">
58
-
<title><function>ldap-count-entries</function> example</title>
75
+
<title><function>ldap_count_entries</function> example</title>
59
76
<para>
60
77
Retrieve number of entries in the result.
61
78
</para>
62
79
<programlisting role="php">
63
80
<![CDATA[
64
-
// $ds is a valid link identifier (see ldap_connect)
81
+
// $ds is a valid LDAP\Connection instance for a directory server
65
82

66
83
$dn = 'ou=example,dc=org';
67
84
$filter = '(|(sn=Doe*)(givenname=John*))';
...
...
@@ -82,7 +99,6 @@
82
99
</para>
83
100
</refsect1>
84
101
</refentry>
85
-

86
102
<!-- Keep this comment at the end of the file
87
103
Local variables:
88
104
mode: sgml
89
105