Sophie

Sophie

distrib > Mageia > 4 > i586 > by-pkgid > f800694edefe91adea2624f711a41a2d > files > 1783

php-manual-en-5.5.7-1.mga4.noarch.rpm

<!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>Create a stopped EvStat watcher object</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="evstat.construct.html">EvStat::__construct</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="evstat.prev.html">EvStat::prev</a></div>
 <div class="up"><a href="class.evstat.html">EvStat</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="evstat.createstopped" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">EvStat::createStopped</h1>
  <p class="verinfo">(PECL ev &gt;= 0.2.0)</p><p class="refpurpose"><span class="refname">EvStat::createStopped</span> &mdash; <span class="dc-title">Create a stopped EvStat watcher object</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-evstat.createstopped-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">final</span>
   <span class="modifier">public</span>
   <span class="modifier">static</span>
   <span class="type"><span class="type void">void</span></span>
    <span class="methodname"><strong>EvStat::createStopped</strong></span>
    ( <span class="methodparam">
    <span class="type">string</span>
     <code class="parameter">$path</code>
   </span>
   , <span class="methodparam">
    <span class="type">double</span>
     <code class="parameter">$interval</code>
   </span>
   , <span class="methodparam">
    <span class="type"><a href="language.types.callable.html" class="type callable">callable</a></span>
     <code class="parameter">$callback</code>
   </span>
   [, <span class="methodparam">
    <span class="type"><a href="language.pseudo-types.html#language.types.mixed" class="type mixed">mixed</a></span>
     <code class="parameter">$data</code>
    <span class="initializer"> = <strong><code>NULL</code></strong></span>
   </span>
   [, <span class="methodparam">
    <span class="type">int</span>
     <code class="parameter">$priority</code>
    <span class="initializer"> = 0</span>
   </span>
  ]] )</div>

  <p class="para rdfs-comment">
   Creates EvStat watcher object, but doesn&#039;t start it
   automatically(unlike
    <span class="methodname"><a href="evstat.construct.html" class="methodname">EvStat::__construct()</a></span>
   ).
  </p>
 </div>

 <div class="refsect1 parameters" id="refsect1-evstat.createstopped-parameters">
  <h3 class="title">Parameters</h3>
  <dl>

   <dt>

    <span class="term">
     <em><code class="parameter">path</code></em>
    </span>
    <dd>

     <p class="para">
      The path to wait for status changes on.
     </p>
    </dd>

   </dt>

   <dt>

    <span class="term">
     <em><code class="parameter">interval</code></em>
    </span>
    <dd>

     <p class="para">
      Hint on how quickly a change is expected to be detected and should
      normally be specified as
      <strong><code>0.0</code></strong>
      to let
      <em class="emphasis">libev</em>
      choose a suitable value.
     </p>
    </dd>

   </dt>

   <dt>

    <span class="term">
     <em><code class="parameter">callback</code></em>
    </span>
    <dd>

     <p class="para">
      See
      <a href="ev.watcher-callbacks.html" class="link">Watcher callbacks</a>
      .
     </p>
    </dd>

   </dt>

   <dt>

    <span class="term">
     <em><code class="parameter">data</code></em>
    </span>
    <dd>

     <p class="para">
      Custom data associated with the watcher.
     </p>
    </dd>

   </dt>

   <dt>

    <span class="term">
     <em><code class="parameter">priority</code></em>
    </span>
    <dd>

     <p class="para">
      <a href="class.ev.html#ev.constants.watcher-pri" class="link">Watcher priority</a>
     </p>
    </dd>

   </dt>

  </dl>

 </div>

 <div class="refsect1 returnvalues" id="refsect1-evstat.createstopped-returnvalues">
  <h3 class="title">Return Values</h3>
  <p class="para">
   Returns a stopped EvStat watcher object on success.
  </p>
 </div>

 <div class="refsect1 seealso" id="refsect1-evstat.createstopped-seealso">
  <h3 class="title">See Also</h3>
  <ul class="simplelist">
   <li class="member">
     <span class="methodname"><a href="evstat.construct.html" class="methodname" rel="rdfs-seeAlso">EvStat::__construct()</a> - Constructs EvStat watcher object</span>
   </li>
   <li class="member">
     <span class="methodname"><a href="evwatcher.start.html" class="methodname" rel="rdfs-seeAlso">EvWatcher::start()</a> - Starts the watcher</span>
   </li>
  </ul>
 </div>

</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="evstat.construct.html">EvStat::__construct</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="evstat.prev.html">EvStat::prev</a></div>
 <div class="up"><a href="class.evstat.html">EvStat</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>