Source for file List.class.php
Documentation is available at List.class.php
* Gumbo Library Framework
* This library is being released under the terms of the New BSD License. A
* copy of the license is packaged with the software (LICENSE.txt). If no
* copy is found, a copy of the license template can be found at:
* http://www.opensource.org/licenses/bsd-license.php
* @copyright Copyright (c) 2007, iBayou, Michael Luster
* @license http://www.opensource.org/licenses/bsd-license.php New BSD License
* @author Michael Luster <mluster79@yahoo.com>
* @link http://sourceforge.net/projects/phpgumbo
* This is a typical set of common methods for accessing and manipulating a List
* of data. This is the general Interface for accessing many types of Lists.
* Some classes will extend this implementation, or use the interface to define
* ways of accessing private information.
* @copyright Copyright (c) 2007, iBayou, Michael Luster
* @license http://www.opensource.org/licenses/bsd-license.php New BSD License
* @author Michael Luster <mluster79@yahoo.com>
* @link http://sourceforge.net/projects/phpgumbo
* @desc List Interface, responsible for holding a List of some data
/** OVERLOADED METHODS **/
* Returns Data (wrapper to get())
* @param int|string$key for integers, use $list->{$num}
public function __get ($key);
* Sets Data (wrapper to add())
public function __set ($key, $data);
* Returns if key is set (wrapper to exists())
* Removes Data (wrapper to remove())
* Adds a new Item to the List
public function add ($data, $key=
null);
* Removes an Item from the List
public function remove ($key);
* Removes a value from the List
public function reset ();
public function get ($key);
* Returns the entire List
* Returns an array of the List Keys
* Returns the size of the list
* Returns if the Key exists, or if the List contains data
public function exists ($key=
null);