Solar_Sql_Model::countPages()

public array Solar_Sql_Model::countPages ( array $fetch = NULL )

Fetches count and pages of available records.

Parameters

  • (array) $fetch: An array of clauses for the SELECT COUNT() statement, including 'where', 'group, and 'having'.

Returns

  • (array) An array with keys 'count' and 'pages'; 'count' is the number of records, 'pages' is the number of pages.

Description

Fetches count and pages of available records.



Local