<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.yaf-registry.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'en',
  ),
  'this' => 
  array (
    0 => 'yaf-registry.del.php',
    1 => 'Yaf_Registry::del',
    2 => 'Remove an item from registry',
  ),
  'up' => 
  array (
    0 => 'class.yaf-registry.php',
    1 => 'Yaf_Registry',
  ),
  'prev' => 
  array (
    0 => 'yaf-registry.construct.php',
    1 => 'Yaf_Registry::__construct',
  ),
  'next' => 
  array (
    0 => 'yaf-registry.get.php',
    1 => 'Yaf_Registry::get',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/yaf/yaf_registry/del.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="yaf-registry.del" class="refentry">
 <div class="refnamediv">
<h1 class="refname">Yaf_Registry::del</h1>
<p class="verinfo">(Yaf &gt;=1.0.0)</p><p class="refpurpose"><span class="refname">Yaf_Registry::del</span> &mdash; <span class="dc-title">Remove an item from registry</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-yaf-registry.del-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="modifier">static</span> <span class="modifier">function</span> <span class="methodname"><strong>Yaf_Registry::del</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>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>

  <p class="simpara">Removes an entry from the registry. Removing a name that does not exist is silently accepted.</p>
 </div>


 <div class="refsect1 parameters" id="refsect1-yaf-registry.del-parameters">
  <h3 class="title">Parameters</h3>
  <dl>
   
    <dt><code class="parameter">name</code></dt>
    <dd>
<p class="simpara">The name of the registry entry.</p>
    </dd>
   
  </dl>
 </div>

 <div class="refsect1 returnvalues" id="refsect1-yaf-registry.del-returnvalues">
  <h3 class="title">Return Values</h3>
<p class="simpara">Always returns <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong>.</p>
 </div>


 <div class="refsect1 examples" id="refsect1-yaf-registry.del-examples">
  <h3 class="title">Examples</h3>
  <div class="example" id="example-1">
   <p><strong>Example #1 <span class="methodname"><strong>Yaf_Registry::del()</strong></span> example</strong></p>
   <div class="example-contents">
<div class="phpcode"><pre><code style="color: #000000"><span style="color: #0000BB">&lt;?php
Yaf_Registry</span><span style="color: #007700">::</span><span style="color: #0000BB">set</span><span style="color: #007700">(</span><span style="color: #DD0000">"redis"</span><span style="color: #007700">, new </span><span style="color: #0000BB">Redis</span><span style="color: #007700">());
</span><span style="color: #0000BB">var_dump</span><span style="color: #007700">(</span><span style="color: #0000BB">Yaf_Registry</span><span style="color: #007700">::</span><span style="color: #0000BB">has</span><span style="color: #007700">(</span><span style="color: #DD0000">"redis"</span><span style="color: #007700">));

</span><span style="color: #0000BB">var_dump</span><span style="color: #007700">(</span><span style="color: #0000BB">Yaf_Registry</span><span style="color: #007700">::</span><span style="color: #0000BB">del</span><span style="color: #007700">(</span><span style="color: #DD0000">"redis"</span><span style="color: #007700">));
</span><span style="color: #0000BB">var_dump</span><span style="color: #007700">(</span><span style="color: #0000BB">Yaf_Registry</span><span style="color: #007700">::</span><span style="color: #0000BB">has</span><span style="color: #007700">(</span><span style="color: #DD0000">"redis"</span><span style="color: #007700">));

</span><span style="color: #FF8000">/* deleting a missing entry is silently accepted */
</span><span style="color: #0000BB">var_dump</span><span style="color: #007700">(</span><span style="color: #0000BB">Yaf_Registry</span><span style="color: #007700">::</span><span style="color: #0000BB">del</span><span style="color: #007700">(</span><span style="color: #DD0000">"redis"</span><span style="color: #007700">));
</span><span style="color: #0000BB">?&gt;</span></code></pre></div>
   </div>

   <div class="example-contents"><p>The above example will output
something similar to:</p></div>
   <div class="example-contents screen">
<div class="examplescode"><pre class="examplescode">bool(true)
bool(true)
bool(false)
bool(true)</pre>
</div>
   </div>
  </div>
 </div>


 <div class="refsect1 seealso" id="refsect1-yaf-registry.del-seealso">
  <h3 class="title">See Also</h3>
  <ul class="simplelist">
   <li><span class="methodname"><a href="yaf-registry.get.php" class="methodname" rel="rdfs-seeAlso">Yaf_Registry::get()</a> - Retrieve an item from registry</span></li>
   <li><span class="methodname"><a href="yaf-registry.set.php" class="methodname" rel="rdfs-seeAlso">Yaf_Registry::set()</a> - Add an item into registry</span></li>
   <li><span class="methodname"><a href="yaf-registry.has.php" class="methodname" rel="rdfs-seeAlso">Yaf_Registry::has()</a> - Check whether an item exists</span></li>
  </ul>
 </div>

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