<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/book.swoole.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'es',
  ),
  'this' => 
  array (
    0 => 'class.swoole-table.php',
    1 => 'Swoole\\Table',
    2 => 'La clase Swoole\\Table',
  ),
  'up' => 
  array (
    0 => 'book.swoole.php',
    1 => 'Swoole',
  ),
  'prev' => 
  array (
    0 => 'swoole-server.tick.php',
    1 => 'Swoole\\Server::tick',
  ),
  'next' => 
  array (
    0 => 'swoole-table.column.php',
    1 => 'Swoole\\Table::column',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'es',
    'path' => 'reference/swoole/swoole.table.xml',
  ),
  'history' => 
  array (
  ),
  'extra_header_links' => 
  array (
    'rel' => 'alternate',
    'href' => '/manual/en/feeds/class.swoole-table.atom',
    'type' => 'application/atom+xml',
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="class.swoole-table" class="reference">
 <h1 class="title">La clase Swoole\Table</h1>
 

 <div class="partintro"><p class="verinfo">(PECL swoole &gt;= 1.9.0)</p>


  <div class="section" id="swoole-table.intro">
   <h2 class="title">Introducción</h2>
   <p class="para">

   </p>
  </div>


  <div class="section" id="swoole-table.synopsis">
   <h2 class="title">Sinopsis de la Clase</h2>


   <div class="classsynopsis">
    <span class="ooclass"><strong class="classname"></strong></span>


    <div class="classsynopsisinfo">
     <span class="ooclass">
      <span class="modifier">class</span> <strong class="classname">Swoole\Table</strong>
     </span>

     <span class="oointerface"><span class="modifier">implements</span> 
       <a href="class.iterator.php" class="interfacename">Iterator</a></span><span class="oointerface">,  <a href="class.countable.php" class="interfacename">Countable</a></span> {</div>

    <div class="classsynopsisinfo classsynopsisinfo_comment">/* Constantes */</div>
    <div class="fieldsynopsis">
     <span class="modifier">const</span>
     <span class="type"><a href="language.types.integer.php" class="type int">int</a></span>
      <var class="fieldsynopsis_varname"><a href="class.swoole-table.php#swoole-table.constants.type-int"><var class="varname">TYPE_INT</var></a></var><span class="initializer"> = 1</span>;</div>

    <div class="fieldsynopsis"><span class="modifier">const</span>
     <span class="type"><a href="language.types.integer.php" class="type int">int</a></span>
      <var class="fieldsynopsis_varname"><a href="class.swoole-table.php#swoole-table.constants.type-string"><var class="varname">TYPE_STRING</var></a></var><span class="initializer"> = 7</span>;</div>

    <div class="fieldsynopsis"><span class="modifier">const</span>
     <span class="type"><a href="language.types.integer.php" class="type int">int</a></span>
      <var class="fieldsynopsis_varname"><a href="class.swoole-table.php#swoole-table.constants.type-float"><var class="varname">TYPE_FLOAT</var></a></var><span class="initializer"> = 6</span>;</div>


    <div class="classsynopsisinfo classsynopsisinfo_comment">/* Métodos */</div>
    <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><a href="swoole-table.column.php" class="methodname">column</a></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">$type</code></span>, <span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$size</code><span class="initializer"> = ?</span></span>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="swoole-table.count.php" class="methodname">count</a></span>(): <span class="type"><a href="language.types.integer.php" class="type int">int</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="swoole-table.create.php" class="methodname">create</a></span>(): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="swoole-table.current.php" class="methodname">current</a></span>(): <span class="type"><a href="language.types.array.php" class="type array">array</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="swoole-table.decr.php" class="methodname">decr</a></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.string.php" class="type string">string</a></span> <code class="parameter">$column</code></span>, <span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$decrby</code><span class="initializer"> = ?</span></span>): <span class="type"><a href="language.types.integer.php" class="type int">int</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="swoole-table.del.php" class="methodname">del</a></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="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="swoole-table.destroy.php" class="methodname">destroy</a></span>(): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="swoole-table.exist.php" class="methodname">exist</a></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="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="swoole-table.get.php" class="methodname">get</a></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.string.php" class="type string">string</a></span> <code class="parameter">$field</code><span class="initializer"> = ?</span></span>): <span class="type"><a href="language.types.mixed.php" class="type mixed">mixed</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="swoole-table.incr.php" class="methodname">incr</a></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.string.php" class="type string">string</a></span> <code class="parameter">$column</code></span>, <span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$incrby</code><span class="initializer"> = ?</span></span>): <span class="type"><a href="language.types.integer.php" class="type int">int</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="swoole-table.key.php" class="methodname">key</a></span>(): <span class="type"><a href="language.types.mixed.php" class="type mixed">mixed</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="swoole-table.next.php" class="methodname">next</a></span>(): <span class="type"><a href="language.types.void.php" class="type void">void</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="swoole-table.rewind.php" class="methodname">rewind</a></span>(): <span class="type"><a href="language.types.void.php" class="type void">void</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="swoole-table.set.php" class="methodname">set</a></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.array.php" class="type array">array</a></span> <code class="parameter">$value</code></span>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="swoole-table.valid.php" class="methodname">valid</a></span>(): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>

   }</div>


  </div>


  <div class="section" id="swoole-table.constants">
   <h2 class="title">Constantes predefinidas</h2>
   <dl>

    
     <dt id="swoole-table.constants.type-int"><strong><code><a href="class.swoole-table.php#swoole-table.constants.type-int">Swoole\Table::TYPE_INT</a></code></strong></dt>
     <dd>
      <p class="para"/>
     </dd>
    

    
     <dt id="swoole-table.constants.type-string"><strong><code><a href="class.swoole-table.php#swoole-table.constants.type-string">Swoole\Table::TYPE_STRING</a></code></strong></dt>
     <dd>
      <p class="para"/>
     </dd>
    

    
     <dt id="swoole-table.constants.type-float"><strong><code><a href="class.swoole-table.php#swoole-table.constants.type-float">Swoole\Table::TYPE_FLOAT</a></code></strong></dt>
     <dd>
      <p class="para"/>
     </dd>
    

   </dl>
  </div>


 </div>

 
















































































































<h2>Tabla de contenidos</h2><ul class="chunklist chunklist_reference"><li><a href="swoole-table.column.php">Swoole\Table::column</a> — Define el tipo de datos y el tama&ntilde;o de las columnas.</li><li><a href="swoole-table.construct.php">Swoole\Table::__construct</a> — Construye una tabla de memoria Swoole de tama&ntilde;o fijo.</li><li><a href="swoole-table.count.php">Swoole\Table::count</a> — Cuenta las filas en la tabla, o cuenta todos los elementos en la tabla si $mode = 1.</li><li><a href="swoole-table.create.php">Swoole\Table::create</a> — Crear la tabla de memoria swoole.</li><li><a href="swoole-table.current.php">Swoole\Table::current</a> — Devuelve la fila actual.</li><li><a href="swoole-table.decr.php">Swoole\Table::decr</a> — Disminuye el valor en la tabla Swoole por $key y $column</li><li><a href="swoole-table.del.php">Swoole\Table::del</a> — Elimina una fila en la tabla Swoole mediante $key</li><li><a href="swoole-table.destroy.php">Swoole\Table::destroy</a> — Destruye la tabla Swoole.</li><li><a href="swoole-table.exist.php">Swoole\Table::exist</a> — Verifica si una fila existe por $row_key.</li><li><a href="swoole-table.get.php">Swoole\Table::get</a> — Devuelve el valor en la tabla Swoole mediante $key y $field.</li><li><a href="swoole-table.incr.php">Swoole\Table::incr</a> — Incrementa el valor por $key y $column</li><li><a href="swoole-table.key.php">Swoole\Table::key</a> — Devuelve la clave de la fila actual.</li><li><a href="swoole-table.next.php">Swoole\Table::next</a> — Iterador de la siguiente fila</li><li><a href="swoole-table.rewind.php">Swoole\Table::rewind</a> — Reinicializa el iterador.</li><li><a href="swoole-table.set.php">Swoole\Table::set</a> — Actualiza una l&iacute;nea de la tabla mediante $key.</li><li><a href="swoole-table.valid.php">Swoole\Table::valid</a> — Verifica si la l&iacute;nea actual es v&aacute;lida.</li></ul>
</div>
<?php manual_footer($setup); ?>