Class DbSelect

Summary

Fully Qualified Name: Zend\Paginator\Adapter\DbSelect
Implements: AdapterInterface

Description

Methods

Name Description Defined By
__construct() Constructor. DbSelect
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()

Constructor.

Parameter Name Type Description
$select \Select The
$adapterOrSqlObject \Adapter|\Sql DB
$resultSetPrototype null|\ResultSetInterface
$countSelect null|\Select

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