Solar_Sql_Select::countPages()

public array Solar_Sql_Select::countPages ( string $col = 'id' )

Get the count of rows and number of pages for the current query.

Parameters

  • (string) $col: The column to COUNT() on. Default is 'id'.

Returns

  • (array) An associative array with keys 'count' (the total number of rows) and 'pages' (the number of pages based on $this->_paging).

Description

Get the count of rows and number of pages for the current query.



Local