<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.gearmanclient.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'uk',
  ),
  'this' => 
  array (
    0 => 'gearmanclient.addoptions.php',
    1 => 'GearmanClient::addOptions',
    2 => 'Add client options',
  ),
  'up' => 
  array (
    0 => 'class.gearmanclient.php',
    1 => 'GearmanClient',
  ),
  'prev' => 
  array (
    0 => 'class.gearmanclient.php',
    1 => 'GearmanClient',
  ),
  'next' => 
  array (
    0 => 'gearmanclient.addserver.php',
    1 => 'GearmanClient::addServer',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/gearman/gearmanclient/addoptions.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="gearmanclient.addoptions" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">GearmanClient::addOptions</h1>
  <p class="verinfo">(PECL gearman &gt;= 0.6.0)</p><p class="refpurpose"><span class="refname">GearmanClient::addOptions</span> &mdash; <span class="dc-title">Add client options</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-gearmanclient.addoptions-description">
  <h3 class="title">Опис</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>GearmanClient::addOptions</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$option</code></span>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>

  <p class="para rdfs-comment">
   Adds one or more options to those already set.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-gearmanclient.addoptions-parameters">
  <h3 class="title">Параметри</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">option</code></dt>
     <dd>
      <p class="para">
       The options to add.
       One of the following constants, or a combination of
       them using the bitwise OR operator (<q class="quote">|</q>):
       <strong><code><a href="gearman.constants.php#constant.gearman-client-generate-unique">GEARMAN_CLIENT_GENERATE_UNIQUE</a></code></strong>,
       <strong><code><a href="gearman.constants.php#constant.gearman-client-non-blocking">GEARMAN_CLIENT_NON_BLOCKING</a></code></strong>,
       <strong><code><a href="gearman.constants.php#constant.gearman-client-unbuffered-result">GEARMAN_CLIENT_UNBUFFERED_RESULT</a></code></strong> or
       <strong><code><a href="gearman.constants.php#constant.gearman-client-free-tasks">GEARMAN_CLIENT_FREE_TASKS</a></code></strong>.
      </p>
     </dd>
    
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-gearmanclient.addoptions-returnvalues">
  <h3 class="title">Значення, що повертаються</h3>
  <p class="para">
   Always returns <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong>.
  </p>
 </div>


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