Methods

Constructs instance.

__construct(\Zend\Db\TableGateway\TableGateway $tableGateway, null | \Zend\Db\Sql\Where | \Closure | string | array $where, null | string | array $order, null | string | array $group, null | \Zend\Db\Sql\Having | \Closure | string | array $having) 

Parameters

$where

null\Zend\Db\Sql\Where\Closurestringarray

$order

nullstringarray

$group

nullstringarray

$having

null\Zend\Db\Sql\Having\Closurestringarray

Exceptions

\Zend\Paginator\Adapter\Exception\InvalidArgumentException

Returns the total number of rows in the result set.

count() : int
Inherited

inherited_from \Zend\Paginator\Adapter\DbSelect::count()

Returns

int

Returns an array of items for a page.

getItems(int $offset, int $itemCountPerPage) : array
Inherited

inherited_from \Zend\Paginator\Adapter\DbSelect::getItems()

Parameters

$offset

int

Page offset

$itemCountPerPage

int

Number of items per page

Returns

array

 Properties

 

$resultSetPrototype

$resultSetPrototype : \Zend\Db\ResultSet\ResultSet
Inherited

inherited_from \Zend\Paginator\Adapter\DbSelect::$$resultSetPrototype
 

Total item count

$rowCount : int
Inherited

inherited_from \Zend\Paginator\Adapter\DbSelect::$$rowCount
 

Database query

$select : \Zend\Db\Sql\Select
Inherited

inherited_from \Zend\Paginator\Adapter\DbSelect::$$select
 

$sql

$sql : \Zend\Db\Sql\Sql
Inherited

inherited_from \Zend\Paginator\Adapter\DbSelect::$$sql