\UnionList
A list object that wraps around other SS_List instances.
Allows iteration over multiple collections in one loop.
Synopsis
class UnionList
extends ViewableData
implements
SS_List
{
- // methods
- public void __construct()
- public int count()
- public bool exists()
- public ArrayIterator getIterator()
- public array toArray()
- public void limit()
- public $this each()
- public void debug()
- public array toNestedArray()
- public array first()
- public array last()
- public array column()
- public Map map()
- public mixed find()
- public void filter()
- public void add()
- public void remove()
- public void offsetExists()
- public void offsetGet()
- public void offsetSet()
- public void offsetUnset()
Hierarchy
Extends
- ViewableData
Implements
- SS_List
Members
protected
- $limit — int
- $lists
—
array
An array of SS_List instances - $offset — int
Methods
public
- __construct() — Create a new UnionList.
- add()
- column() — Returns an array of a single field value for each item in each list.
- count() — Return the total number of items in each SS_List.
- debug()
- each() — Walks the list using the specified callback
- exists() — Returns true if one of the SS_List's have an item.
- filter()
- find() — Find the first item of this list where the given key = value
- first() — Get first item in the first SS_List.
- getIterator() — Iterate over each SS_List, one after the other.
- last() — Get last item in the last SS_List.
- limit() — Return a new DataList instance with the records returned in this query restricted by a limit clause.
- map() — Returns a map of this list
- offsetExists()
- offsetGet()
- offsetSet()
- offsetUnset()
- remove()
- toArray() — Get array of each record in each SS_List.
- toNestedArray() — Return this list as an array and every object it as an sub array as well