atelierspierrot/patterns

View on GitHub
phpdoc/Patterns/Commons/Collection.html

Summary

Maintainability
Test Coverage
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8" />
    <meta name="robots" content="index, follow, all" />
    <title>Patterns\Commons\Collection | Patterns</title>

            <link rel="stylesheet" type="text/css" href="../../css/bootstrap.min.css">
        <link rel="stylesheet" type="text/css" href="../../css/bootstrap-theme.min.css">
        <link rel="stylesheet" type="text/css" href="../../css/sami.css">
        <script src="../../js/jquery-1.11.1.min.js"></script>
        <script src="../../js/bootstrap.min.js"></script>
        <script src="../../js/typeahead.min.js"></script>
        <script src="../../sami.js"></script>
        <meta name="MobileOptimized" content="width">
        <meta name="HandheldFriendly" content="true">
        <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1">
    
    
    </head>

    <body id="class" data-name="class:Patterns_Commons_Collection" data-root-path="../../">
            <div id="content">
        <div id="left-column">
                <div id="control-panel">
                <form id="search-form" action="../../search.html" method="GET">
            <span class="glyphicon glyphicon-search"></span>
            <input name="search"
                   class="typeahead form-control"
                   type="search"
                   placeholder="Search">
        </form>
    </div>

                <div id="api-tree"></div>

        </div>
        <div id="right-column">
                <nav id="site-nav" class="navbar navbar-default" role="navigation">
        <div class="container-fluid">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar-elements">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="../../index.html">Patterns</a>
            </div>
            <div class="collapse navbar-collapse" id="navbar-elements">
                <ul class="nav navbar-nav">
                    <li><a href="../../classes.html">Classes</a></li>
                                            <li><a href="../../namespaces.html">Namespaces</a></li>
                                        <li><a href="../../interfaces.html">Interfaces</a></li>
                    <li><a href="../../traits.html">Traits</a></li>
                    <li><a href="../../doc-index.html">Index</a></li>
                    <li><a href="../../search.html">Search</a></li>
                </ul>
            </div>
        </div>
    </nav>

                        <div class="namespace-breadcrumbs">
            <ol class="breadcrumb">
                <li><span class="label label-default">class</span></li>
                                                            <li><a href="../../Patterns.html">Patterns</a></li>
                                        <li><a href="../../Patterns/Commons.html">Commons</a></li>
    
                <li>Collection</li>
            </ol>
        </div>
                <div id="page-content">
                
    <div class="page-header">
        <h1>Collection</h1>
    </div>

    <p>    class
    <strong>Collection</strong>        implements
        <a href="../../Patterns/Interfaces/CollectionInterface.html"><abbr title="Patterns\Interfaces\CollectionInterface">CollectionInterface</abbr></a>
</p>

            <div class="description">
            <p>Collection manager : allows to set, get, loop and seek in an array collection</p>                    </div>
    
    
    
    
            <h2>Methods</h2>

            <div class="container-fluid underlined">
                    <div class="row">
                <div class="col-md-2 type">
                    
    
                </div>
                <div class="col-md-8 type">
                    <a href="#method___construct">__construct</a>(
    array $content = array())
                                            <p>Construction of a collection</p>                </div>
                <div class="col-md-2"></div>
            </div>
                    <div class="row">
                <div class="col-md-2 type">
                    
    
                </div>
                <div class="col-md-8 type">
                    <a href="#method_setCollection">setCollection</a>(
    array $content)
                                            <p>Set the collection content</p>                </div>
                <div class="col-md-2"></div>
            </div>
                    <div class="row">
                <div class="col-md-2 type">
                    
    
                </div>
                <div class="col-md-8 type">
                    <a href="#method_getCollection">getCollection</a>()
                                            <p>Get the collection content</p>                </div>
                <div class="col-md-2"></div>
            </div>
                    <div class="row">
                <div class="col-md-2 type">
                    
    void
                </div>
                <div class="col-md-8 type">
                    <a href="#method_rewind">rewind</a>()
                                            <p>Put the index value at the beginning of the collection array</p>                </div>
                <div class="col-md-2"></div>
            </div>
                    <div class="row">
                <div class="col-md-2 type">
                    
    
                </div>
                <div class="col-md-8 type">
                    <a href="#method_reset">reset</a>()
                                            <p>Alias of self::rewind()</p>                </div>
                <div class="col-md-2"></div>
            </div>
                    <div class="row">
                <div class="col-md-2 type">
                    
    
                </div>
                <div class="col-md-8 type">
                    <a href="#method_end">end</a>()
                                            <p>Put the index value at the last index</p>                </div>
                <div class="col-md-2"></div>
            </div>
                    <div class="row">
                <div class="col-md-2 type">
                    
    void
                </div>
                <div class="col-md-8 type">
                    <a href="#method_next">next</a>()
                                            <p>Increase the current index</p>                </div>
                <div class="col-md-2"></div>
            </div>
                    <div class="row">
                <div class="col-md-2 type">
                    
    
                </div>
                <div class="col-md-8 type">
                    <a href="#method_prev">prev</a>()
                                            <p>Decrease the current index</p>                </div>
                <div class="col-md-2"></div>
            </div>
                    <div class="row">
                <div class="col-md-2 type">
                    
    bool
                </div>
                <div class="col-md-8 type">
                    <a href="#method_valid">valid</a>()
                                            <p>Check if current value is set</p>                </div>
                <div class="col-md-2"></div>
            </div>
                    <div class="row">
                <div class="col-md-2 type">
                    
    mixed
                </div>
                <div class="col-md-8 type">
                    <a href="#method_current">current</a>()
                                            <p>Gets the value of the collection at current index</p>                </div>
                <div class="col-md-2"></div>
            </div>
                    <div class="row">
                <div class="col-md-2 type">
                    
    
                </div>
                <div class="col-md-8 type">
                    <a href="#method_pos">pos</a>()
                                            <p>Alias of self::current()</p>                </div>
                <div class="col-md-2"></div>
            </div>
                    <div class="row">
                <div class="col-md-2 type">
                    
    int
                </div>
                <div class="col-md-8 type">
                    <a href="#method_key">key</a>()
                                            <p>Gets the current index</p>                </div>
                <div class="col-md-2"></div>
            </div>
                    <div class="row">
                <div class="col-md-2 type">
                    
    <a href="../../Patterns/Commons/Collection.html"><abbr title="Patterns\Commons\Collection">Collection</abbr></a>
                </div>
                <div class="col-md-8 type">
                    <a href="#method_seek">seek</a>(
    int|string $index)
                                            <p>Define the current index</p>                </div>
                <div class="col-md-2"></div>
            </div>
                    <div class="row">
                <div class="col-md-2 type">
                    
    
                </div>
                <div class="col-md-8 type">
                    <a href="#method_offsetSet">offsetSet</a>($offset, $value)
                                            <p>Set a collection entry</p>                </div>
                <div class="col-md-2"></div>
            </div>
                    <div class="row">
                <div class="col-md-2 type">
                    
    
                </div>
                <div class="col-md-8 type">
                    <a href="#method_offsetExists">offsetExists</a>($offset)
                                            <p>Check if a collection entry exists</p>                </div>
                <div class="col-md-2"></div>
            </div>
                    <div class="row">
                <div class="col-md-2 type">
                    
    
                </div>
                <div class="col-md-8 type">
                    <a href="#method_offsetUnset">offsetUnset</a>($offset)
                                            <p>Unset a collection entry</p>                </div>
                <div class="col-md-2"></div>
            </div>
                    <div class="row">
                <div class="col-md-2 type">
                    
    
                </div>
                <div class="col-md-8 type">
                    <a href="#method_offsetGet">offsetGet</a>($offset)
                                            <p>Get a collection entry</p>                </div>
                <div class="col-md-2"></div>
            </div>
                    <div class="row">
                <div class="col-md-2 type">
                    
    
                </div>
                <div class="col-md-8 type">
                    <a href="#method_push">push</a>(
    mixed $value)
                                            <p>Pushes a new value at the end of the collection, with no specific index</p>                </div>
                <div class="col-md-2"></div>
            </div>
                    <div class="row">
                <div class="col-md-2 type">
                    
    int
                </div>
                <div class="col-md-8 type">
                    <a href="#method_count">count</a>()
                                            <p>Counts the number of entries in the collection</p>                </div>
                <div class="col-md-2"></div>
            </div>
                    <div class="row">
                <div class="col-md-2 type">
                    
    
                </div>
                <div class="col-md-8 type">
                    <a href="#method_shift">shift</a>()
                                            <p>Deletes a value at the beginning of the collection</p>                </div>
                <div class="col-md-2"></div>
            </div>
                    <div class="row">
                <div class="col-md-2 type">
                    
    
                </div>
                <div class="col-md-8 type">
                    <a href="#method_pop">pop</a>()
                                            <p>Deletes a value at the end of the collection</p>                </div>
                <div class="col-md-2"></div>
            </div>
                    <div class="row">
                <div class="col-md-2 type">
                    
    
                </div>
                <div class="col-md-8 type">
                    <a href="#method_unshift">unshift</a>(
    mixed $value)
                                            <p>Pushes a new value at the beginning of the collection, with no specific index</p>                </div>
                <div class="col-md-2"></div>
            </div>
                    <div class="row">
                <div class="col-md-2 type">
                    
    
                </div>
                <div class="col-md-8 type">
                    <a href="#method_each">each</a>()
                                            <p>Returns the current key=>value pair and put increase the index</p>                </div>
                <div class="col-md-2"></div>
            </div>
                    <div class="row">
                <div class="col-md-2 type">
                    
    bool
                </div>
                <div class="col-md-8 type">
                    <a href="#method_in_array">in_array</a>(
    mixed $value)
                                            <p>Search a value in the current array and returns true if so</p>                </div>
                <div class="col-md-2"></div>
            </div>
                    <div class="row">
                <div class="col-md-2 type">
                    
    bool
                </div>
                <div class="col-md-8 type">
                    <a href="#method_key_exists">key_exists</a>(
    mixed $index)
                                            <p>Search if an entry exists with this key</p>                </div>
                <div class="col-md-2"></div>
            </div>
                    <div class="row">
                <div class="col-md-2 type">
                    
    array
                </div>
                <div class="col-md-8 type">
                    <a href="#method_values">values</a>()
                                            <p>Returns an array with all values of the original array</p>                </div>
                <div class="col-md-2"></div>
            </div>
                    <div class="row">
                <div class="col-md-2 type">
                    
    array
                </div>
                <div class="col-md-8 type">
                    <a href="#method_keys">keys</a>()
                                            <p>Returns an array with all keys of the original array</p>                </div>
                <div class="col-md-2"></div>
            </div>
                    <div class="row">
                <div class="col-md-2 type">
                    
    
                </div>
                <div class="col-md-8 type">
                    <a href="#method_getEntry">getEntry</a>(
    int|string $index, 
    mixed $default = null)
                                            <p>Gets a collection entry value by its index</p>                </div>
                <div class="col-md-2"></div>
            </div>
                    <div class="row">
                <div class="col-md-2 type">
                    
    
                </div>
                <div class="col-md-8 type">
                    <a href="#method_setEntry">setEntry</a>(
    int|string|null $index = null, 
    mixed $value)
                                            <p>Sets a collection entry value by its index</p>                </div>
                <div class="col-md-2"></div>
            </div>
                    <div class="row">
                <div class="col-md-2 type">
                    
    
                </div>
                <div class="col-md-8 type">
                    <a href="#method_addEntry">addEntry</a>($index = null, $value)
                                            <p>Add a collection entry value (alias of "setEntry()")</p>                </div>
                <div class="col-md-2"></div>
            </div>
                    <div class="row">
                <div class="col-md-2 type">
                    
    
                </div>
                <div class="col-md-8 type">
                    <a href="#method_issetEntry">issetEntry</a>(
    int|string $index)
                                            <p>Check if a collection entry exists by its index</p>                </div>
                <div class="col-md-2"></div>
            </div>
                    <div class="row">
                <div class="col-md-2 type">
                    
    
                </div>
                <div class="col-md-8 type">
                    <a href="#method_unsetEntry">unsetEntry</a>(
    int|string $index)
                                            <p>Deletes a collection entry by its index</p>                </div>
                <div class="col-md-2"></div>
            </div>
            </div>


        <h2>Details</h2>

            <div id="method-details">
                    <div class="method-item">
                    <h3 id="method___construct">
        <div class="location">at line 51</div>
        <code>                    
    
    <strong>__construct</strong>(
    array $content = array())</code>
    </h3>
    <div class="details">
                    <div class="method-description">
                                    <p>Construction of a collection</p>                                </div>
                <div class="tags">
                            <h4>Parameters</h4>

                    <table class="table table-condensed">
                    <tr>
                <td>
    array</td>
                <td>$content</td>
                <td>The array of the collection content (optional)</td>
            </tr>
            </table>

            
            
            
                    </div>
    </div>

            </div>
                    <div class="method-item">
                    <h3 id="method_setCollection">
        <div class="location">at line 62</div>
        <code>                    
    
    <strong>setCollection</strong>(
    array $content)</code>
    </h3>
    <div class="details">
                    <div class="method-description">
                                    <p>Set the collection content</p>                                </div>
                <div class="tags">
                            <h4>Parameters</h4>

                    <table class="table table-condensed">
                    <tr>
                <td>
    array</td>
                <td>$content</td>
                <td>The array of the collection content</td>
            </tr>
            </table>

            
            
            
                    </div>
    </div>

            </div>
                    <div class="method-item">
                    <h3 id="method_getCollection">
        <div class="location">at line 73</div>
        <code>                    
    
    <strong>getCollection</strong>()</code>
    </h3>
    <div class="details">
                    <div class="method-description">
                                    <p>Get the collection content</p>                                </div>
                <div class="tags">
            
            
            
                    </div>
    </div>

            </div>
                    <div class="method-item">
                    <h3 id="method_rewind">
        <div class="location">at line 87</div>
        <code>final                    
    void
    <strong>rewind</strong>()</code>
    </h3>
    <div class="details">
                    <div class="method-description">
                                    <p>Put the index value at the beginning of the collection array</p>                                </div>
                <div class="tags">
            
                            <h4>Return Value</h4>

                    <table class="table table-condensed">
        <tr>
            <td>
    void</td>
            <td>
</td>
        </tr>
    </table>

            
            
                    </div>
    </div>

            </div>
                    <div class="method-item">
                    <h3 id="method_reset">
        <div class="location">at line 98</div>
        <code>final                    
    
    <strong>reset</strong>()</code>
    </h3>
    <div class="details">
                    <div class="method-description">
                                    <p>Alias of self::rewind()</p>                                </div>
                <div class="tags">
            
            
            
                    </div>
    </div>

            </div>
                    <div class="method-item">
                    <h3 id="method_end">
        <div class="location">at line 108</div>
        <code>final                    
    
    <strong>end</strong>()</code>
    </h3>
    <div class="details">
                    <div class="method-description">
                                    <p>Put the index value at the last index</p>                                </div>
                <div class="tags">
            
            
            
                    </div>
    </div>

            </div>
                    <div class="method-item">
                    <h3 id="method_next">
        <div class="location">at line 119</div>
        <code>final                    
    void
    <strong>next</strong>()</code>
    </h3>
    <div class="details">
                    <div class="method-description">
                                    <p>Increase the current index</p>                                </div>
                <div class="tags">
            
                            <h4>Return Value</h4>

                    <table class="table table-condensed">
        <tr>
            <td>
    void</td>
            <td>
</td>
        </tr>
    </table>

            
            
                    </div>
    </div>

            </div>
                    <div class="method-item">
                    <h3 id="method_prev">
        <div class="location">at line 130</div>
        <code>final                    
    
    <strong>prev</strong>()</code>
    </h3>
    <div class="details">
                    <div class="method-description">
                                    <p>Decrease the current index</p>                                </div>
                <div class="tags">
            
            
            
                    </div>
    </div>

            </div>
                    <div class="method-item">
                    <h3 id="method_valid">
        <div class="location">at line 141</div>
        <code>final                    
    bool
    <strong>valid</strong>()</code>
    </h3>
    <div class="details">
                    <div class="method-description">
                                    <p>Check if current value is set</p>                                </div>
                <div class="tags">
            
                            <h4>Return Value</h4>

                    <table class="table table-condensed">
        <tr>
            <td>
    bool</td>
            <td>True if a collection value is set for the current index</td>
        </tr>
    </table>

            
            
                    </div>
    </div>

            </div>
                    <div class="method-item">
                    <h3 id="method_current">
        <div class="location">at line 151</div>
        <code>final                    
    mixed
    <strong>current</strong>()</code>
    </h3>
    <div class="details">
                    <div class="method-description">
                                    <p>Gets the value of the collection at current index</p>                                </div>
                <div class="tags">
            
                            <h4>Return Value</h4>

                    <table class="table table-condensed">
        <tr>
            <td>
    mixed</td>
            <td>Current value in the collection</td>
        </tr>
    </table>

            
            
                    </div>
    </div>

            </div>
                    <div class="method-item">
                    <h3 id="method_pos">
        <div class="location">at line 161</div>
        <code>final                    
    
    <strong>pos</strong>()</code>
    </h3>
    <div class="details">
                    <div class="method-description">
                                    <p>Alias of self::current()</p>                                </div>
                <div class="tags">
            
            
            
                    </div>
    </div>

            </div>
                    <div class="method-item">
                    <h3 id="method_key">
        <div class="location">at line 171</div>
        <code>final                    
    int
    <strong>key</strong>()</code>
    </h3>
    <div class="details">
                    <div class="method-description">
                                    <p>Gets the current index</p>                                </div>
                <div class="tags">
            
                            <h4>Return Value</h4>

                    <table class="table table-condensed">
        <tr>
            <td>
    int</td>
            <td>The current index</td>
        </tr>
    </table>

            
            
                    </div>
    </div>

            </div>
                    <div class="method-item">
                    <h3 id="method_seek">
        <div class="location">at line 182</div>
        <code>final                    
    <a href="../../Patterns/Commons/Collection.html"><abbr title="Patterns\Commons\Collection">Collection</abbr></a>
    <strong>seek</strong>(
    int|string $index)</code>
    </h3>
    <div class="details">
                    <div class="method-description">
                                    <p>Define the current index</p>                                </div>
                <div class="tags">
                            <h4>Parameters</h4>

                    <table class="table table-condensed">
                    <tr>
                <td>
    int|string</td>
                <td>$index</td>
                <td>
</td>
            </tr>
            </table>

            
                            <h4>Return Value</h4>

                    <table class="table table-condensed">
        <tr>
            <td>
    <a href="../../Patterns/Commons/Collection.html"><abbr title="Patterns\Commons\Collection">Collection</abbr></a></td>
            <td>
</td>
        </tr>
    </table>

            
            
                    </div>
    </div>

            </div>
                    <div class="method-item">
                    <h3 id="method_offsetSet">
        <div class="location">at line 199</div>
        <code>final                    
    
    <strong>offsetSet</strong>($offset, $value)</code>
    </h3>
    <div class="details">
                    <div class="method-description">
                                    <p>Set a collection entry</p>                                </div>
                <div class="tags">
                            <h4>Parameters</h4>

                    <table class="table table-condensed">
                    <tr>
                <td></td>
                <td>$offset</td>
                <td>
</td>
            </tr>
                    <tr>
                <td></td>
                <td>$value</td>
                <td>
</td>
            </tr>
            </table>

            
            
            
                            <h4>See also</h4>

                    <table class="table table-condensed">
                    <tr>
                <td>self::setEntry()</td>
                <td></td>
            </tr>
            </table>

                    </div>
    </div>

            </div>
                    <div class="method-item">
                    <h3 id="method_offsetExists">
        <div class="location">at line 209</div>
        <code>final                    
    
    <strong>offsetExists</strong>($offset)</code>
    </h3>
    <div class="details">
                    <div class="method-description">
                                    <p>Check if a collection entry exists</p>                                </div>
                <div class="tags">
                            <h4>Parameters</h4>

                    <table class="table table-condensed">
                    <tr>
                <td></td>
                <td>$offset</td>
                <td>
</td>
            </tr>
            </table>

            
            
            
                            <h4>See also</h4>

                    <table class="table table-condensed">
                    <tr>
                <td>self::issetEntry()</td>
                <td></td>
            </tr>
            </table>

                    </div>
    </div>

            </div>
                    <div class="method-item">
                    <h3 id="method_offsetUnset">
        <div class="location">at line 219</div>
        <code>final                    
    
    <strong>offsetUnset</strong>($offset)</code>
    </h3>
    <div class="details">
                    <div class="method-description">
                                    <p>Unset a collection entry</p>                                </div>
                <div class="tags">
                            <h4>Parameters</h4>

                    <table class="table table-condensed">
                    <tr>
                <td></td>
                <td>$offset</td>
                <td>
</td>
            </tr>
            </table>

            
            
            
                            <h4>See also</h4>

                    <table class="table table-condensed">
                    <tr>
                <td>self::unsetEntry()</td>
                <td></td>
            </tr>
            </table>

                    </div>
    </div>

            </div>
                    <div class="method-item">
                    <h3 id="method_offsetGet">
        <div class="location">at line 229</div>
        <code>final                    
    
    <strong>offsetGet</strong>($offset)</code>
    </h3>
    <div class="details">
                    <div class="method-description">
                                    <p>Get a collection entry</p>                                </div>
                <div class="tags">
                            <h4>Parameters</h4>

                    <table class="table table-condensed">
                    <tr>
                <td></td>
                <td>$offset</td>
                <td>
</td>
            </tr>
            </table>

            
            
            
                            <h4>See also</h4>

                    <table class="table table-condensed">
                    <tr>
                <td>self::getEntry()</td>
                <td></td>
            </tr>
            </table>

                    </div>
    </div>

            </div>
                    <div class="method-item">
                    <h3 id="method_push">
        <div class="location">at line 244</div>
        <code>                    
    
    <strong>push</strong>(
    mixed $value)</code>
    </h3>
    <div class="details">
                    <div class="method-description">
                                    <p>Pushes a new value at the end of the collection, with no specific index</p>                                </div>
                <div class="tags">
                            <h4>Parameters</h4>

                    <table class="table table-condensed">
                    <tr>
                <td>
    mixed</td>
                <td>$value</td>
                <td>The new value to add in the collection</td>
            </tr>
            </table>

            
            
            
                    </div>
    </div>

            </div>
                    <div class="method-item">
                    <h3 id="method_count">
        <div class="location">at line 255</div>
        <code>                    
    int
    <strong>count</strong>()</code>
    </h3>
    <div class="details">
                    <div class="method-description">
                                    <p>Counts the number of entries in the collection</p>                                </div>
                <div class="tags">
            
                            <h4>Return Value</h4>

                    <table class="table table-condensed">
        <tr>
            <td>
    int</td>
            <td>
</td>
        </tr>
    </table>

            
            
                    </div>
    </div>

            </div>
                    <div class="method-item">
                    <h3 id="method_shift">
        <div class="location">at line 265</div>
        <code>                    
    
    <strong>shift</strong>()</code>
    </h3>
    <div class="details">
                    <div class="method-description">
                                    <p>Deletes a value at the beginning of the collection</p>                                </div>
                <div class="tags">
            
            
            
                    </div>
    </div>

            </div>
                    <div class="method-item">
                    <h3 id="method_pop">
        <div class="location">at line 276</div>
        <code>                    
    
    <strong>pop</strong>()</code>
    </h3>
    <div class="details">
                    <div class="method-description">
                                    <p>Deletes a value at the end of the collection</p>                                </div>
                <div class="tags">
            
            
            
                    </div>
    </div>

            </div>
                    <div class="method-item">
                    <h3 id="method_unshift">
        <div class="location">at line 288</div>
        <code>                    
    
    <strong>unshift</strong>(
    mixed $value)</code>
    </h3>
    <div class="details">
                    <div class="method-description">
                                    <p>Pushes a new value at the beginning of the collection, with no specific index</p>                                </div>
                <div class="tags">
                            <h4>Parameters</h4>

                    <table class="table table-condensed">
                    <tr>
                <td>
    mixed</td>
                <td>$value</td>
                <td>The new value to add in the collection</td>
            </tr>
            </table>

            
            
            
                    </div>
    </div>

            </div>
                    <div class="method-item">
                    <h3 id="method_each">
        <div class="location">at line 299</div>
        <code>                    
    
    <strong>each</strong>()</code>
    </h3>
    <div class="details">
                    <div class="method-description">
                                    <p>Returns the current key=>value pair and put increase the index</p>                                </div>
                <div class="tags">
            
            
            
                    </div>
    </div>

            </div>
                    <div class="method-item">
                    <h3 id="method_in_array">
        <div class="location">at line 312</div>
        <code>                    
    bool
    <strong>in_array</strong>(
    mixed $value)</code>
    </h3>
    <div class="details">
                    <div class="method-description">
                                    <p>Search a value in the current array and returns true if so</p>                                </div>
                <div class="tags">
                            <h4>Parameters</h4>

                    <table class="table table-condensed">
                    <tr>
                <td>
    mixed</td>
                <td>$value</td>
                <td>The value to test</td>
            </tr>
            </table>

            
                            <h4>Return Value</h4>

                    <table class="table table-condensed">
        <tr>
            <td>
    bool</td>
            <td>
</td>
        </tr>
    </table>

            
            
                    </div>
    </div>

            </div>
                    <div class="method-item">
                    <h3 id="method_key_exists">
        <div class="location">at line 323</div>
        <code>                    
    bool
    <strong>key_exists</strong>(
    mixed $index)</code>
    </h3>
    <div class="details">
                    <div class="method-description">
                                    <p>Search if an entry exists with this key</p>                                </div>
                <div class="tags">
                            <h4>Parameters</h4>

                    <table class="table table-condensed">
                    <tr>
                <td>
    mixed</td>
                <td>$index</td>
                <td>The index to test</td>
            </tr>
            </table>

            
                            <h4>Return Value</h4>

                    <table class="table table-condensed">
        <tr>
            <td>
    bool</td>
            <td>
</td>
        </tr>
    </table>

            
            
                    </div>
    </div>

            </div>
                    <div class="method-item">
                    <h3 id="method_values">
        <div class="location">at line 333</div>
        <code>                    
    array
    <strong>values</strong>()</code>
    </h3>
    <div class="details">
                    <div class="method-description">
                                    <p>Returns an array with all values of the original array</p>                                </div>
                <div class="tags">
            
                            <h4>Return Value</h4>

                    <table class="table table-condensed">
        <tr>
            <td>
    array</td>
            <td>
</td>
        </tr>
    </table>

            
            
                    </div>
    </div>

            </div>
                    <div class="method-item">
                    <h3 id="method_keys">
        <div class="location">at line 343</div>
        <code>                    
    array
    <strong>keys</strong>()</code>
    </h3>
    <div class="details">
                    <div class="method-description">
                                    <p>Returns an array with all keys of the original array</p>                                </div>
                <div class="tags">
            
                            <h4>Return Value</h4>

                    <table class="table table-condensed">
        <tr>
            <td>
    array</td>
            <td>
</td>
        </tr>
    </table>

            
            
                    </div>
    </div>

            </div>
                    <div class="method-item">
                    <h3 id="method_getEntry">
        <div class="location">at line 359</div>
        <code>                    
    
    <strong>getEntry</strong>(
    int|string $index, 
    mixed $default = null)</code>
    </h3>
    <div class="details">
                    <div class="method-description">
                                    <p>Gets a collection entry value by its index</p>                                </div>
                <div class="tags">
                            <h4>Parameters</h4>

                    <table class="table table-condensed">
                    <tr>
                <td>
    int|string</td>
                <td>$index</td>
                <td>The index of the entry to get</td>
            </tr>
                    <tr>
                <td>
    mixed</td>
                <td>$default</td>
                <td>The default value returned if the original entry is not set (default is NULL)</td>
            </tr>
            </table>

            
            
            
                    </div>
    </div>

            </div>
                    <div class="method-item">
                    <h3 id="method_setEntry">
        <div class="location">at line 374</div>
        <code>                    
    
    <strong>setEntry</strong>(
    int|string|null $index = null, 
    mixed $value)</code>
    </h3>
    <div class="details">
                    <div class="method-description">
                                    <p>Sets a collection entry value by its index</p>                    <p>If the index is null, the value will be pushed at the end of the collection.</p>            </div>
                <div class="tags">
                            <h4>Parameters</h4>

                    <table class="table table-condensed">
                    <tr>
                <td>
    int|string|null</td>
                <td>$index</td>
                <td>The index of the entry to set</td>
            </tr>
                    <tr>
                <td>
    mixed</td>
                <td>$value</td>
                <td>The value to set</td>
            </tr>
            </table>

            
            
            
                            <h4>See also</h4>

                    <table class="table table-condensed">
                    <tr>
                <td>self::push()</td>
                <td></td>
            </tr>
            </table>

                    </div>
    </div>

            </div>
                    <div class="method-item">
                    <h3 id="method_addEntry">
        <div class="location">at line 388</div>
        <code>                    
    
    <strong>addEntry</strong>($index = null, $value)</code>
    </h3>
    <div class="details">
                    <div class="method-description">
                                    <p>Add a collection entry value (alias of "setEntry()")</p>                                </div>
                <div class="tags">
                            <h4>Parameters</h4>

                    <table class="table table-condensed">
                    <tr>
                <td></td>
                <td>$index</td>
                <td>
</td>
            </tr>
                    <tr>
                <td></td>
                <td>$value</td>
                <td>
</td>
            </tr>
            </table>

            
            
            
                            <h4>See also</h4>

                    <table class="table table-condensed">
                    <tr>
                <td>self::setEntry()</td>
                <td></td>
            </tr>
            </table>

                    </div>
    </div>

            </div>
                    <div class="method-item">
                    <h3 id="method_issetEntry">
        <div class="location">at line 399</div>
        <code>                    
    
    <strong>issetEntry</strong>(
    int|string $index)</code>
    </h3>
    <div class="details">
                    <div class="method-description">
                                    <p>Check if a collection entry exists by its index</p>                                </div>
                <div class="tags">
                            <h4>Parameters</h4>

                    <table class="table table-condensed">
                    <tr>
                <td>
    int|string</td>
                <td>$index</td>
                <td>The index of the entry to check</td>
            </tr>
            </table>

            
            
            
                    </div>
    </div>

            </div>
                    <div class="method-item">
                    <h3 id="method_unsetEntry">
        <div class="location">at line 410</div>
        <code>                    
    
    <strong>unsetEntry</strong>(
    int|string $index)</code>
    </h3>
    <div class="details">
                    <div class="method-description">
                                    <p>Deletes a collection entry by its index</p>                                </div>
                <div class="tags">
                            <h4>Parameters</h4>

                    <table class="table table-condensed">
                    <tr>
                <td>
    int|string</td>
                <td>$index</td>
                <td>The index of the entry to delete</td>
            </tr>
            </table>

            
            
            
                    </div>
    </div>

            </div>
            </div>

    
            </div>
                <div id="footer">
        Generated by <a href="http://sami.sensiolabs.org/">Sami, the API Documentation Generator</a>.
    </div>

        </div>
    </div>
    </body>

</html>