<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>The Swoole\Connection\Iterator class</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="swoole-client.wakeup.html">Swoole\Client::wakeup</a></div> <div class="next" style="text-align: right; float: right;"><a href="swoole-connection-iterator.count.html">Swoole\Connection\Iterator::count</a></div> <div class="up"><a href="book.swoole.html">Swoole</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="class.swoole-connection-iterator" class="reference"> <h1 class="title">The Swoole\Connection\Iterator class</h1> <div class="partintro"><p class="verinfo">(PHP 5 >= 5.2.0, PHP 7, PECL swoole >= 1.9.0)</p> <div class="section" id="swoole-connection-iterator.intro"> <h2 class="title">Introduction</h2> <p class="para"> </p> </div> <div class="section" id="swoole-connection-iterator.synopsis"> <h2 class="title">Class synopsis</h2> <div class="classsynopsis"> <div class="ooclass"></div> <div class="classsynopsisinfo"> <span class="ooclass"> <strong class="classname">Swoole\Connection\Iterator</strong> </span> <span class="oointerface">implements <span class="interfacename"><a href="class.iterator.html" class="interfacename">Iterator</a></span> </span> <span class="oointerface">, <span class="interfacename"><a href="class.countable.html" class="interfacename">Countable</a></span> </span> <span class="oointerface">, <span class="interfacename"><a href="class.arrayaccess.html" class="interfacename">ArrayAccess</a></span> </span> {</div> <div class="classsynopsisinfo classsynopsisinfo_comment">/* Methods */</div> <div class="methodsynopsis dc-description"> <span class="modifier">public</span> <span class="type">int</span> <span class="methodname"><a href="swoole-connection-iterator.count.html" class="methodname">count</a></span> ( <span class="methodparam">void</span> )</div> <div class="methodsynopsis dc-description"> <span class="modifier">public</span> <span class="type">Connection</span> <span class="methodname"><a href="swoole-connection-iterator.current.html" class="methodname">current</a></span> ( <span class="methodparam">void</span> )</div> <div class="methodsynopsis dc-description"> <span class="modifier">public</span> <span class="type">int</span> <span class="methodname"><a href="swoole-connection-iterator.key.html" class="methodname">key</a></span> ( <span class="methodparam">void</span> )</div> <div class="methodsynopsis dc-description"> <span class="modifier">public</span> <span class="type">Connection</span> <span class="methodname"><a href="swoole-connection-iterator.next.html" class="methodname">next</a></span> ( <span class="methodparam">void</span> )</div> <div class="methodsynopsis dc-description"> <span class="modifier">public</span> <span class="type">boolean</span> <span class="methodname"><a href="swoole-connection-iterator.offsetexists.html" class="methodname">offsetExists</a></span> ( <span class="methodparam"><span class="type">int</span> <code class="parameter">$index</code></span> )</div> <div class="methodsynopsis dc-description"> <span class="modifier">public</span> <span class="type">Connection</span> <span class="methodname"><a href="swoole-connection-iterator.offsetget.html" class="methodname">offsetGet</a></span> ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$index</code></span> )</div> <div class="methodsynopsis dc-description"> <span class="modifier">public</span> <span class="type">void</span> <span class="methodname"><a href="swoole-connection-iterator.offsetset.html" class="methodname">offsetSet</a></span> ( <span class="methodparam"><span class="type">int</span> <code class="parameter">$offset</code></span> , <span class="methodparam"><span class="type"><a href="language.pseudo-types.html#language.types.mixed" class="type mixed">mixed</a></span> <code class="parameter">$connection</code></span> )</div> <div class="methodsynopsis dc-description"> <span class="modifier">public</span> <span class="type">void</span> <span class="methodname"><a href="swoole-connection-iterator.offsetunset.html" class="methodname">offsetUnset</a></span> ( <span class="methodparam"><span class="type">int</span> <code class="parameter">$offset</code></span> )</div> <div class="methodsynopsis dc-description"> <span class="modifier">public</span> <span class="type">void</span> <span class="methodname"><a href="swoole-connection-iterator.rewind.html" class="methodname">rewind</a></span> ( <span class="methodparam">void</span> )</div> <div class="methodsynopsis dc-description"> <span class="modifier">public</span> <span class="type">boolean</span> <span class="methodname"><a href="swoole-connection-iterator.valid.html" class="methodname">valid</a></span> ( <span class="methodparam">void</span> )</div> }</div> </div> </div> <h2>Table of Contents</h2><ul class="chunklist chunklist_reference"><li><a href="swoole-connection-iterator.count.html">Swoole\Connection\Iterator::count</a> — Count connections.</li><li><a href="swoole-connection-iterator.current.html">Swoole\Connection\Iterator::current</a> — Return current connection entry.</li><li><a href="swoole-connection-iterator.key.html">Swoole\Connection\Iterator::key</a> — Return key of the current connection.</li><li><a href="swoole-connection-iterator.next.html">Swoole\Connection\Iterator::next</a> — Move to the next connection.</li><li><a href="swoole-connection-iterator.offsetexists.html">Swoole\Connection\Iterator::offsetExists</a> — Check if offet exists.</li><li><a href="swoole-connection-iterator.offsetget.html">Swoole\Connection\Iterator::offsetGet</a> — Offset to retrieve.</li><li><a href="swoole-connection-iterator.offsetset.html">Swoole\Connection\Iterator::offsetSet</a> — Assign a Connection to the specified offset.</li><li><a href="swoole-connection-iterator.offsetunset.html">Swoole\Connection\Iterator::offsetUnset</a> — Unset an offset.</li><li><a href="swoole-connection-iterator.rewind.html">Swoole\Connection\Iterator::rewind</a> — Rewinds iterator</li><li><a href="swoole-connection-iterator.valid.html">Swoole\Connection\Iterator::valid</a> — Check if current position is valid.</li></ul> </div> <hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="swoole-client.wakeup.html">Swoole\Client::wakeup</a></div> <div class="next" style="text-align: right; float: right;"><a href="swoole-connection-iterator.count.html">Swoole\Connection\Iterator::count</a></div> <div class="up"><a href="book.swoole.html">Swoole</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>