<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.yaz.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'it',
  ),
  'this' => 
  array (
    0 => 'function.yaz-set-option.php',
    1 => 'yaz_set_option',
    2 => 'Sets one or more options for connection',
  ),
  'up' => 
  array (
    0 => 'ref.yaz.php',
    1 => 'YAZ Funzioni',
  ),
  'prev' => 
  array (
    0 => 'function.yaz-search.php',
    1 => 'yaz_search',
  ),
  'next' => 
  array (
    0 => 'function.yaz-sort.php',
    1 => 'yaz_sort',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/yaz/functions/yaz-set-option.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.yaz-set-option" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">yaz_set_option</h1>
  <p class="verinfo">(PECL yaz &gt;= 0.9.0)</p><p class="refpurpose"><span class="refname">yaz_set_option</span> &mdash; <span class="dc-title">Sets one or more options for connection</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-function.yaz-set-option-description">
  <h3 class="title">Descrizione</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>yaz_set_option</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span> <code class="parameter">$id</code></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>, <span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$value</code></span>): <span class="type"><a href="language.types.void.php" class="type void">void</a></span></div>

  <div class="methodsynopsis dc-description"><span class="methodname"><strong>yaz_set_option</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span> <code class="parameter">$id</code></span>, <span class="methodparam"><span class="type"><a href="language.types.array.php" class="type array">array</a></span> <code class="parameter">$options</code></span>): <span class="type"><a href="language.types.void.php" class="type void">void</a></span></div>

  <p class="para rdfs-comment">
   Sets one or more options on the given connection.
  </p>
 </div>

 <div class="refsect1 parameters" id="refsect1-function.yaz-set-option-parameters">
  <h3 class="title">Elenco dei parametri</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">id</code></dt>
     <dd>
      <p class="para">
       The connection resource returned by <span class="function"><a href="function.yaz-connect.php" class="function">yaz_connect()</a></span>.
      </p>
     </dd>
    
    
     <dt><code class="parameter">name</code> or <code class="parameter">options</code></dt>
     <dd>
      <p class="para">
       May be either a string or an array.
      </p>
      <p class="para">
       If given as a string, this will be the name of the option to set. You&#039;ll
       need to give it&#039;s <code class="parameter">value</code>.
      </p>
      <p class="para">
       If given as an array, this will be an associative array (option name 
       =&gt; option value).
      </p>
      <table class="doctable table">
       <caption><strong>PHP/YAZ Connection Options</strong></caption>
       
        <col width="2*" />
        <col width="5*" />
        <thead>
         <tr>
          <th>Name</th>
          <th>Description</th>
         </tr>

        </thead>

        <tbody class="tbody">
         <tr>
          <td>implementationName</td>
          <td>implementation name of server</td>
         </tr>

         <tr>
          <td>implementationVersion</td>
          <td>implementation version of server</td>
         </tr>

         <tr>
          <td>implementationId</td>
          <td>implementation ID of server</td>
         </tr>

         <tr>
          <td>schema</td>
          <td>
           schema for retrieval. By default, no schema is used. Setting this
           option is equivalent to using function 
           <span class="function"><a href="function.yaz-schema.php" class="function">yaz_schema()</a></span>
          </td>
         </tr>

         <tr>
          <td>preferredRecordSyntax</td>
          <td>
           record syntax for retrieval. By default, no syntax is used. Setting
           this option is equivalent to using function 
           <span class="function"><a href="function.yaz-syntax.php" class="function">yaz_syntax()</a></span>
          </td>
         </tr>

         <tr>
          <td>start</td>
          <td>
           offset for first record to be retrieved via 
           <span class="function"><a href="function.yaz-search.php" class="function">yaz_search()</a></span> or <span class="function"><a href="function.yaz-present.php" class="function">yaz_present()</a></span>.
           First record is numbered has a start value of 0. Second record has
           start value 1.
           Setting this option in combination with option
           <code class="literal">count</code> has the same effect as calling
           <span class="function"><a href="function.yaz-range.php" class="function">yaz_range()</a></span> except that records are
           numbered from 1 in <span class="function"><a href="function.yaz-range.php" class="function">yaz_range()</a></span>
          </td>
         </tr>

         <tr>
          <td>count</td>
          <td>maximum number of records to be retrieved via
           <span class="function"><a href="function.yaz-search.php" class="function">yaz_search()</a></span> or <span class="function"><a href="function.yaz-present.php" class="function">yaz_present()</a></span>.
          </td>
         </tr>

         <tr>
          <td>elementSetName</td>
          <td>element-set-name for retrieval. Setting this option is
           equivalent to calling <span class="function"><a href="function.yaz-element.php" class="function">yaz_element()</a></span>.
          </td>
         </tr>

        </tbody>
       
      </table>

     </dd>
    
    
     <dt><code class="parameter">value</code></dt>
     <dd>
      <p class="para">
       The new value of the option. Use this only if the previous argument is
       a string.
      </p>
     </dd>
    
   </dl>
  </p>
 </div>

 <div class="refsect1 returnvalues" id="refsect1-function.yaz-set-option-returnvalues">
  <h3 class="title">Valori restituiti</h3>
  <p class="para">
   Nessun valore viene restituito.
  </p>
 </div>

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