Class DbTableGateway

Summary

Fully Qualified Name: Zend\Paginator\Adapter\DbTableGateway
Extends: DbSelect

Description

Methods

Name Description Defined By
__construct() Constructs instance. DbTableGateway
count() Returns the total number of rows in the result set. DbSelect
getItems() Returns an array of items for a page. DbSelect

Method Details

__construct()

Constructs instance.

Parameter Name Type Description
$tableGateway \AbstractTableGateway
$where null|\Where|\Closure|string|array
$order null|string|array
$group null|string|array
$having null|\Having|\Closure|string|array

Returns:

count()

Returns the total number of rows in the result set.

Returns: int

getItems()

Returns an array of items for a page.

Parameter Name Type Description
$offset int Page
$itemCountPerPage int Number

Returns: array

Top