mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2025-06-18 13:57:03 +08:00
108 lines
3.7 KiB
HTML
108 lines
3.7 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
|
|
<title>Get all result entries</title>
|
|
</head>
|
|
<body class="docs"><div id="layout">
|
|
<div id="layout-content"><div id="function.ldap-get-entries" class="refentry">
|
|
<div class="refnamediv">
|
|
<h1 class="refname">ldap_get_entries</h1>
|
|
<p class="verinfo">(PHP 4, PHP 5, PHP 7)</p><p class="refpurpose"><span class="refname">ldap_get_entries</span> — <span class="dc-title">Get all result entries</span></p>
|
|
|
|
</div>
|
|
|
|
<div class="refsect1 description" id="refsect1-function.ldap-get-entries-description">
|
|
<h3 class="title">说明</h3>
|
|
<div class="methodsynopsis dc-description">
|
|
<span class="methodname"><strong>ldap_get_entries</strong></span>
|
|
( <span class="methodparam"><span class="type">resource</span> <code class="parameter">$link_identifier</code></span>
|
|
, <span class="methodparam"><span class="type">resource</span> <code class="parameter">$result_identifier</code></span>
|
|
) : <span class="type">array</span></div>
|
|
|
|
<p class="para rdfs-comment">
|
|
Reads multiple entries from the given result, and then reading the
|
|
attributes and multiple values.
|
|
</p>
|
|
</div>
|
|
|
|
|
|
<div class="refsect1 parameters" id="refsect1-function.ldap-get-entries-parameters">
|
|
<h3 class="title">参数</h3>
|
|
<p class="para">
|
|
<dl>
|
|
|
|
|
|
<dt>
|
|
<code class="parameter">link_identifier</code></dt>
|
|
|
|
<dd>
|
|
|
|
<p class="para">
|
|
An LDAP link identifier, returned by <span class="function"><a href="ldap_connect.html" class="function">ldap_connect()</a></span>.
|
|
</p>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt>
|
|
<code class="parameter">result_identifier</code></dt>
|
|
|
|
<dd>
|
|
|
|
<p class="para">
|
|
</p>
|
|
</dd>
|
|
|
|
|
|
</dl>
|
|
|
|
</p>
|
|
</div>
|
|
|
|
|
|
<div class="refsect1 returnvalues" id="refsect1-function.ldap-get-entries-returnvalues">
|
|
<h3 class="title">返回值</h3>
|
|
<p class="para">
|
|
Returns a complete result information in a multi-dimensional array on
|
|
success and <strong><code>FALSE</code></strong> on error.
|
|
</p>
|
|
<p class="para">
|
|
The structure of the array is as follows.
|
|
The attribute index is converted to lowercase. (Attributes are
|
|
case-insensitive for directory servers, but not when used as
|
|
array indices.)
|
|
<div class="informalexample">
|
|
<div class="example-contents">
|
|
<div class="cdata"><pre>
|
|
return_value["count"] = number of entries in the result
|
|
return_value[0] : refers to the details of first entry
|
|
|
|
return_value[i]["dn"] = DN of the ith entry in the result
|
|
|
|
return_value[i]["count"] = number of attributes in ith entry
|
|
return_value[i][j] = NAME of the jth attribute in the ith entry in the result
|
|
|
|
return_value[i]["attribute"]["count"] = number of values for
|
|
attribute in ith entry
|
|
return_value[i]["attribute"][j] = jth value of attribute in ith entry
|
|
</pre></div>
|
|
</div>
|
|
|
|
</div>
|
|
</p>
|
|
</div>
|
|
|
|
|
|
<div class="refsect1 seealso" id="refsect1-function.ldap-get-entries-seealso">
|
|
<h3 class="title">参见</h3>
|
|
<p class="para">
|
|
<ul class="simplelist">
|
|
<li class="member"><span class="function"><a href="ldap_first_entry.html" class="function" rel="rdfs-seeAlso">ldap_first_entry()</a> - Return first result id</span></li>
|
|
<li class="member"><span class="function"><a href="ldap_next_entry.html" class="function" rel="rdfs-seeAlso">ldap_next_entry()</a> - Get next result entry</span></li>
|
|
</ul>
|
|
</p>
|
|
</div>
|
|
|
|
|
|
</div></div></div></body></html> |