<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.yac.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'tr',
  ),
  'this' => 
  array (
    0 => 'yac.setter.php',
    1 => 'Yac::__set',
    2 => 'Store a value using property syntax',
  ),
  'up' => 
  array (
    0 => 'class.yac.php',
    1 => 'Yac',
  ),
  'prev' => 
  array (
    0 => 'yac.set.php',
    1 => 'Yac::set',
  ),
  'next' => 
  array (
    0 => 'refs.utilspec.audio.php',
    1 => 'Ses Bi&ccedil;emleme İşlemleri',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/yac/yac/setter.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="yac.setter" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">Yac::__set</h1>
  <p class="verinfo">(PECL yac &gt;= 1.0.0)</p><p class="refpurpose"><span class="refname">Yac::__set</span> &mdash; <span class="dc-title">Store a value using property syntax</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-yac.setter-description">
  <h3 class="title">Açıklama</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="modifier">function</span> <span class="methodname"><strong>Yac::__set</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$key</code></span>, <span class="methodparam"><span class="type"><a href="language.types.mixed.php" class="type mixed">mixed</a></span> <code class="parameter">$value</code></span>): <span class="type"><a href="language.types.mixed.php" class="type mixed">mixed</a></span></div>

  <p class="simpara">
   Stores a value in the cache, invoked when writing a property of a
   <span class="classname"><a href="class.yac.php" class="classname">Yac</a></span> instance: <code class="literal">$yac-&gt;foo = &quot;bar&quot;</code>
   is equivalent to <code class="literal">$yac-&gt;set(&quot;foo&quot;, &quot;bar&quot;)</code>, with no
   ttl.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-yac.setter-parameters">
  <h3 class="title">Bağımsız Değişkenler</h3>
  <dl>
   
    <dt><code class="parameter">key</code></dt>
    <dd>
     <p class="simpara">
      The property name, used as the cache key.
     </p>
    </dd>
   
   
    <dt><code class="parameter">value</code></dt>
    <dd>
     <p class="simpara">
      The value to store. Every PHP type except <span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span> can
      be stored.
     </p>
    </dd>
   
  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-yac.setter-returnvalues">
  <h3 class="title">Dönen Değerler</h3>
  <p class="simpara">
   Returns the stored value.
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-yac.setter-examples">
  <h3 class="title">Örnekler</h3>
  <div class="example" id="example-1">
   <p><strong>Örnek 1 <span class="methodname"><strong>Yac::__set()</strong></span> example</strong></p>
   <div class="example-contents">
<div class="phpcode"><pre><code style="color: #000000"><span style="color: #0000BB">&lt;?php
$yac </span><span style="color: #007700">= new </span><span style="color: #0000BB">Yac</span><span style="color: #007700">();

</span><span style="color: #0000BB">$yac</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">foo </span><span style="color: #007700">= </span><span style="color: #DD0000">"bar"</span><span style="color: #007700">;          </span><span style="color: #FF8000">// stored without a ttl
</span><span style="color: #0000BB">var_dump</span><span style="color: #007700">(</span><span style="color: #0000BB">$yac</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">get</span><span style="color: #007700">(</span><span style="color: #DD0000">"foo"</span><span style="color: #007700">)); </span><span style="color: #FF8000">// string(3) "bar"
</span><span style="color: #0000BB">?&gt;</span></code></pre></div>
   </div>

  </div>
 </div>


 <div class="refsect1 seealso" id="refsect1-yac.setter-seealso">
  <h3 class="title">Ayrıca Bakınız</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="methodname"><a href="yac.set.php" class="methodname" rel="rdfs-seeAlso">Yac::set()</a> - Store a value into the cache</span></li>
    <li><span class="methodname"><a href="yac.getter.php" class="methodname" rel="rdfs-seeAlso">Yac::__get()</a> - Retrieve a value using property syntax</span></li>
   </ul>
  </p>
 </div>


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