Methods

Constructor.

__construct(\Zend\Db\Sql\Select $select, \Zend\Db\Adapter\Adapter | \Zend\Db\Sql\Sql $adapterOrSqlObject, \Zend\Db\ResultSet\ResultSetInterface $resultSetPrototype) 

Parameters

$select

\Zend\Db\Sql\Select

The select query

$adapterOrSqlObject

\Zend\Db\Adapter\Adapter\Zend\Db\Sql\Sql

DB adapter or Sql object

$resultSetPrototype

null\Zend\Db\ResultSet\ResultSetInterface

Exceptions

\Zend\Paginator\Adapter\Exception\InvalidArgumentException

Returns the total number of rows in the result set.

count() : integer

Returns

integer

Returns an array of items for a page.

getItems(integer $offset, integer $itemCountPerPage) : array

Parameters

$offset

integer

Page offset

$itemCountPerPage

integer

Number of items per page

Returns

array

 Properties

 

$resultSetPrototype

$resultSetPrototype : \Zend\Db\ResultSet\ResultSet

 

Total item count

$rowCount : integer

 

Database query

$select : \Zend\Db\Sql\Select

 

$sql

$sql : \Zend\Db\Sql\Sql