Heyday\QueryBuilder\UnionQueryBuilder
Synopsis
class UnionQueryBuilder
extends QueryBuilder
{
- // members
- protected array $queryBuilders = ;
- // Inherited members from QueryBuilder
- protected array $queryModifiers;
- protected array $data;
- protected ArrayList $listCache;
- protected SQLQuery $queryCache;
- protected $dataClass;
- protected $stage;
- // methods
- public void __construct()
- public SQLQuery getQuery()
- protected string getUnionedQuery()
- protected array getQueriesSql()
- public array getQueryBuilders()
- public UnionQueryBuilder setQueryBuilders()
- public UnionQueryBuilder addQueryBuilder()
- // Inherited methods from QueryBuilder
- public void __construct()
- public QueryBuilder setStage()
- public string getStage()
- protected void invalidateCache()
- public SQLQuery getQuery()
- public ArrayList getList()
- public QueryBuilder addQueryModifier()
- public QueryBuilder setQueryModifiers()
- public array getQueryModifiers()
- public QueryBuilder setData()
- public Traversable getIterator()
- public boolean offsetExists()
- public mixed offsetGet()
- public void offsetSet()
- public void offsetUnset()
- public array toArray()
- public array toNestedArray()
- public void add()
- public void remove()
- public mixed first()
- public mixed last()
- public array map()
- public mixed find()
- public array column()
- public mixed each()
- public int count()
Hierarchy
Extends
Members
protected
- $data — array
- $dataClass — null
- $listCache — Heyday\QueryBuilder\bool|\ArrayList
- $queryBuilders — array
- $queryCache — Heyday\QueryBuilder\bool|\SQLQuery
- $queryModifiers — array
- $stage — string
Methods
protected
public
Inherited from Heyday\QueryBuilder\QueryBuilder
protected
public
- add() — Adds an item to the list, making no guarantees about where it will appear.
- addQueryModifier()
- column() — Returns an array of a single field value for all items in the list.
- count() — (PHP 5 >= 5.1.0)<br/> Count elements of an object
- each() — Walks the list using the specified callback
- find() — Returns the first item in the list where the key field is equal to the value.
- first() — Returns the first item in the list.
- getIterator() — (PHP 5 >= 5.0.0)<br/> Retrieve an external iterator
- getList()
- getQuery()
- getQueryModifiers()
- getStage()
- last() — Returns the last item in the list.
- map() — Returns a map of a key field to a value field of all the items in the list.
- offsetExists() — (PHP 5 >= 5.0.0)<br/> Whether a offset exists
- offsetGet() — (PHP 5 >= 5.0.0)<br/> Offset to retrieve
- offsetSet() — (PHP 5 >= 5.0.0)<br/> Offset to set
- offsetUnset() — (PHP 5 >= 5.0.0)<br/> Offset to unset
- remove() — Removes an item from the list.
- setData()
- setQueryModifiers()
- setStage()
- toArray() — Returns all the items in the list in an array.
- toNestedArray() — Returns the contents of the list as an array of maps.