uTools-Manuals/docs/php/imap_getacl.html
2019-04-08 23:22:26 +08:00

110 lines
4.0 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>Gets the ACL for a given mailbox</title>
</head>
<body class="docs"><div id="layout">
<div id="layout-content"><div id="function.imap-getacl" class="refentry">
<div class="refnamediv">
<h1 class="refname">imap_getacl</h1>
<p class="verinfo">(PHP 5, PHP 7)</p><p class="refpurpose"><span class="refname">imap_getacl</span> &mdash; <span class="dc-title">Gets the ACL for a given mailbox</span></p>
</div>
<div class="refsect1 description" id="refsect1-function.imap-getacl-description">
<h3 class="title">说明</h3>
<div class="methodsynopsis dc-description">
<span class="methodname"><strong>imap_getacl</strong></span>
( <span class="methodparam"><span class="type">resource</span> <code class="parameter">$imap_stream</code></span>
, <span class="methodparam"><span class="type">string</span> <code class="parameter">$mailbox</code></span>
) : <span class="type">array</span></div>
<p class="para rdfs-comment">
Gets the ACL for a given mailbox.
</p>
</div>
<div class="refsect1 parameters" id="refsect1-function.imap-getacl-parameters">
<h3 class="title">参数</h3>
<p class="para">
<dl>
<dt>
<code class="parameter">
imap_stream</code></dt>
<dd>
<p class="para"><span class="function"><a href="imap_open.html" class="function">imap_open()</a></span> 返回的 IMAP 流。</p></dd>
<dt>
<code class="parameter">mailbox</code></dt>
<dd>
<p class="para">
The mailbox name, see <span class="function"><a href="imap_open.html" class="function">imap_open()</a></span> for more
information
</p>
<div class="warning"><strong class="warning">Warning</strong><p class="simpara">
Passing untrusted data to this parameter is <em class="emphasis">insecure</em>, unless
<a href="imap.configuration.html#ini.imap.enable-insecure-rsh" class="link">imap.enable_insecure_rsh</a> is disabled.
</p></div>
</dd>
</dl>
</p>
</div>
<div class="refsect1 returnvalues" id="refsect1-function.imap-getacl-returnvalues">
<h3 class="title">返回值</h3>
<p class="para">
Returns an associative array of &quot;folder&quot; =&gt; &quot;acl&quot; pairs.
</p>
</div>
<div class="refsect1 examples" id="refsect1-function.imap-getacl-examples">
<h3 class="title">范例</h3>
<p class="para">
<div class="example" id="example-4024">
<p><strong>Example #1 <span class="function"><strong>imap_getacl()</strong></span> example</strong></p>
<div class="example-contents">
<div class="phpcode"><pre><span style="color: #000000">
<span style="color: #0000BB">&lt;?php<br /><br />print_r</span><span style="color: #007700">(</span><span style="color: #0000BB">imap_getacl</span><span style="color: #007700">(</span><span style="color: #0000BB">$conn_id</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">'user.joecool'</span><span style="color: #007700">));<br /><br /></span><span style="color: #0000BB">?&gt;</span>
</span>
</pre></div>
</div>
<div class="example-contents"><p>以上例程的输出类似于:</p></div>
<div class="example-contents screen">
<div class="cdata"><pre>
Array
(
[asubfolder] =&gt; lrswipcda
[anothersubfolder] =&gt; lrswipcda
)
</pre></div>
</div>
</div>
</p>
</div>
<div class="refsect1 notes" id="refsect1-function.imap-getacl-notes">
<h3 class="title">注释</h3>
<p class="para">
This function is currently only available to users of the c-client2000
or greater library.
</p>
</div>
<div class="refsect1 seealso" id="refsect1-function.imap-getacl-seealso">
<h3 class="title">参见</h3>
<p class="para">
<ul class="simplelist">
<li class="member"><span class="function"><a href="imap_setacl.html" class="function" rel="rdfs-seeAlso">imap_setacl()</a> - Sets the ACL for a given mailbox</span></li>
</ul>
</p>
</div>
</div></div></div></body></html>