<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.syncevent.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'tr',
  ),
  'this' => 
  array (
    0 => 'syncevent.construct.php',
    1 => 'SyncEvent::__construct',
    2 => 'Constructs a new SyncEvent object',
  ),
  'up' => 
  array (
    0 => 'class.syncevent.php',
    1 => 'SyncEvent',
  ),
  'prev' => 
  array (
    0 => 'class.syncevent.php',
    1 => 'SyncEvent',
  ),
  'next' => 
  array (
    0 => 'syncevent.fire.php',
    1 => 'SyncEvent::fire',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/sync/syncevent/construct.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="syncevent.construct" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">SyncEvent::__construct</h1>
  <p class="verinfo">(PECL sync &gt;= 1.0.0)</p><p class="refpurpose"><span class="refname">SyncEvent::__construct</span> &mdash; <span class="dc-title">Constructs a new SyncEvent object</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-syncevent.construct-description">
  <h3 class="title">Açıklama</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>SyncEvent::__construct</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$name</code><span class="initializer"> = ?</span></span>, <span class="methodparam"><span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span> <code class="parameter">$manual</code><span class="initializer"> = <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></span></span>, <span class="methodparam"><span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span> <code class="parameter">$prefire</code><span class="initializer"> = <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></span></span>)</div>

  <p class="simpara">
   Constructs a named or unnamed event object.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-syncevent.construct-parameters">
  <h3 class="title">Bağımsız Değişkenler</h3>
  <dl>
   
    <dt><code class="parameter">name</code></dt>
    <dd>
     <span class="simpara">
      The name of the event if this is a named event object.
     </span>
     <blockquote class="note"><p><strong class="note">Bilginize</strong>: 
      <span class="simpara">
       If the name already exists, it must be able to be opened by the current user
       that the process is running as or an exception will be thrown with a meaningless
       error message.
      </span>
     </p></blockquote>
    </dd>
   
   
    <dt><code class="parameter">manual</code></dt>
    <dd>
     <span class="simpara">
      Specifies whether or not the event object must be reset manually.
     </span>
     <blockquote class="note"><p><strong class="note">Bilginize</strong>: 
      <span class="simpara">
       Manual reset event objects allow all waiting processes through until the
       object is reset.
      </span>
     </p></blockquote>
    </dd>
   
   
    <dt><code class="parameter">prefire</code></dt>
    <dd>
     <span class="simpara">
      Specifies whether or not to prefire (signal) the event object.
     </span>
     <blockquote class="note"><p><strong class="note">Bilginize</strong>: 
      <span class="simpara">
       Only has impact if the calling process/thread is the first to create the object.
      </span>
     </p></blockquote>
    </dd>
   
  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-syncevent.construct-returnvalues">
  <h3 class="title">Dönen Değerler</h3>
  <p class="simpara">
   The new <span class="classname"><a href="class.syncevent.php" class="classname">SyncEvent</a></span> object.
  </p>
 </div>


 <div class="refsect1 errors" id="refsect1-syncevent.construct-errors">
  <h3 class="title">Hatalar/İstisnalar</h3>
  <p class="simpara">
   An exception is thrown if the event object cannot be created or opened.
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-syncevent.construct-examples">
  <h3 class="title">Örnekler</h3>
  <div class="example" id="example-1">
   <p><strong>Örnek 1 <span class="function"><strong>SyncEvent::__construct()</strong></span> example</strong></p>
   <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br /></span><span style="color: #FF8000">// In a web application:<br /></span><span style="color: #0000BB">$event </span><span style="color: #007700">= new </span><span style="color: #0000BB">SyncEvent</span><span style="color: #007700">(</span><span style="color: #DD0000">"GetAppReport"</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">$event</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">fire</span><span style="color: #007700">();<br /><br /></span><span style="color: #FF8000">// In a cron job:<br /></span><span style="color: #0000BB">$event </span><span style="color: #007700">= new </span><span style="color: #0000BB">SyncEvent</span><span style="color: #007700">(</span><span style="color: #DD0000">"GetAppReport"</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">$event</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">wait</span><span style="color: #007700">();<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
   </div>

  </div>
 </div>


 <div class="refsect1 changelog" id="refsect1-syncevent.construct-changelog">
  <h3 class="title">Sürüm Bilgisi</h3>
  <table class="doctable informaltable">
   
    <thead>
     <tr>
      <th>Sürüm: </th>
      <th>Açıklama</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
      <td>PECL sync 1.1.0</td>
      <td>
       <span class="simpara">
        Added <code class="parameter">prefire</code>.
       </span>
      </td>
     </tr>

    </tbody>
   
  </table>

 </div>


 <div class="refsect1 seealso" id="refsect1-syncevent.construct-seealso">
  <h3 class="title">Ayrıca Bakınız</h3>
  <ul class="simplelist">
   <li><span class="methodname"><a href="syncevent.fire.php" class="methodname" rel="rdfs-seeAlso">SyncEvent::fire()</a> - Fires/sets the event</span></li>
   <li><span class="methodname"><a href="syncevent.reset.php" class="methodname" rel="rdfs-seeAlso">SyncEvent::reset()</a> - Resets a manual event</span></li>
   <li><span class="methodname"><a href="syncevent.wait.php" class="methodname" rel="rdfs-seeAlso">SyncEvent::wait()</a> - Waits for the event to be fired/set</span></li>
  </ul>
 </div>


</div><?php manual_footer($setup); ?>