Class Join

Summary

Fully Qualified Name: Zend\Db\Sql\Join
Implements: Iterator, Countable

Description

Aggregate JOIN specifications.

Each specification is an array with the following keys:

Methods

Name Description Defined By
__construct() Initialize iterator position. Join
count() Get count of attached predicates Join
current() Return current join specification. Join
getJoins() Join
join() Join
key() Return the current iterator index. Join
next() Advance to the next JOIN specification. Join
reset() Reset to an empty list of JOIN specifications. Join
rewind() Rewind iterator. Join
valid() Is the iterator at a valid position? Join

Method Details

__construct()

Initialize iterator position.

Returns:

count()

Get count of attached predicates

Returns: int

current()

Return current join specification.

Returns: array

getJoins()

Returns: array

join()

Parameter Name Type Description
$name string|array|\TableIdentifier A
$on string|\Predicate\Expression A
$columns string|string[]|int|int[] A
$type string The

Returns: self Provides a fluent interface

key()

Return the current iterator index.

Returns: int

next()

Advance to the next JOIN specification.

Returns:

reset()

Reset to an empty list of JOIN specifications.

Returns: self Provides a fluent interface

rewind()

Rewind iterator.

Returns:

valid()

Is the iterator at a valid position?

Returns: bool

Top