uTools-Manuals/docs/php/fam_next_event.html
2019-04-28 19:00:34 +08:00

76 lines
2.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 next pending FAM event</title>
</head>
<body class="docs"><div id="layout">
<div id="layout-content"><div id="function.fam-next-event" class="refentry">
<div class="refnamediv">
<h1 class="refname">fam_next_event</h1>
<p class="verinfo">(PHP 5 &lt; 5.1.0)</p><p class="refpurpose"><span class="refname">fam_next_event</span> &mdash; <span class="dc-title">Get next pending FAM event</span></p>
</div>
<div class="refsect1 description" id="refsect1-function.fam-next-event-description">
<h3 class="title">说明</h3>
<div class="methodsynopsis dc-description">
<span class="methodname"><strong>fam_next_event</strong></span>
( <span class="methodparam"><span class="type">resource</span> <code class="parameter">$fam</code></span>
) : <span class="type">array</span></div>
<p class="para rdfs-comment">
Returns the next pending FAM event.
</p>
<p class="para">
The function will block until an event is available which can be checked
for using <span class="function"><a href="fam_pending.html" class="function">fam_pending()</a></span>.
</p>
</div>
<div class="refsect1 parameters" id="refsect1-function.fam-next-event-parameters">
<h3 class="title">参数</h3>
<p class="para">
<dl>
<dt>
<code class="parameter">fam</code></dt>
<dd>
<p class="para">
A resource representing a connection to the FAM service returned by
<span class="function"><a href="fam_open.html" class="function">fam_open()</a></span>
</p>
</dd>
</dl>
</p>
</div>
<div class="refsect1 returnvalues" id="refsect1-function.fam-next-event-returnvalues">
<h3 class="title">返回值</h3>
<p class="para">
Returns an array that contains a FAM event code in the
&#039;<em>code</em>&#039; element, the path of the file this event applies
to in the &#039;<em>filename</em>&#039; element and optionally a hostname
in the &#039;<em>hostname</em>&#039; element.
</p>
<p class="para">
The possible event codes are described in detail in the
<a href="fam.constants.html" class="link">constants part</a> of this section.
</p>
</div>
<div class="refsect1 seealso" id="refsect1-function.fam-next-event-seealso">
<h3 class="title">参见</h3>
<p class="para">
<ul class="simplelist">
<li class="member"><span class="function"><a href="fam_pending.html" class="function" rel="rdfs-seeAlso">fam_pending()</a> - Check for pending FAM events</span></li>
</ul>
</p>
</div>
</div></div></div></body></html>