Zend Framework
3.0
|
Aggregate JOIN specifications. More...
Public Member Functions | |
__construct () | |
Initialize iterator position. | |
rewind () | |
Rewind iterator. | |
current () | |
Return current join specification. | |
key () | |
Return the current iterator index. | |
next () | |
Advance to the next JOIN specification. | |
valid () | |
Is the iterator at a valid position? | |
getJoins () | |
join ($name, $on, $columns=[Select::SQL_STAR], $type=Join::JOIN_INNER) | |
reset () | |
Reset to an empty list of JOIN specifications. | |
count () | |
Get count of attached predicates. | |
Public Attributes | |
const | JOIN_INNER = 'inner' |
const | JOIN_OUTER = 'outer' |
const | JOIN_LEFT = 'left' |
const | JOIN_RIGHT = 'right' |
const | JOIN_RIGHT_OUTER = 'right outer' |
const | JOIN_LEFT_OUTER = 'left outer' |
Protected Attributes | |
$joins = [] | |
Aggregate JOIN specifications.
Each specification is an array with the following keys:
__construct | ( | ) |
Initialize iterator position.
count | ( | ) |
Get count of attached predicates.
current | ( | ) |
Return current join specification.
getJoins | ( | ) |
join | ( | $name, | |
$on, | |||
$columns = [Select::SQL_STAR] , |
|||
$type = Join::JOIN_INNER |
|||
) |
string | array | $name | A table name on which to join, or a single element associative array, of the form alias => table |
string | $on | A string specification describing the fields to join on. |
string|string[]|int|int[] | $columns A single column name, an array of column names, or (a) specification(s) such as SQL_STAR representing the columns to join. | |
string | $type | The JOIN type to use; see the JOIN_* constants. |
Exception\InvalidArgumentException | for invalid $name values. |
key | ( | ) |
Return the current iterator index.
next | ( | ) |
Advance to the next JOIN specification.
reset | ( | ) |
Reset to an empty list of JOIN specifications.
rewind | ( | ) |
Rewind iterator.
valid | ( | ) |
Is the iterator at a valid position?
|
protected |
const JOIN_INNER = 'inner' |
const JOIN_LEFT = 'left' |
const JOIN_LEFT_OUTER = 'left outer' |
const JOIN_OUTER = 'outer' |
const JOIN_RIGHT = 'right' |
const JOIN_RIGHT_OUTER = 'right outer' |