Property | Type | Description | |
---|---|---|---|
$limit | integer | null | Current rows limit (if provided) | |
$options | array | Array with options. | |
$paginateResult | stdClass | Phalcon's paginate result. |
Method | Description | |
---|---|---|
__construct ( Phalcon\Paginator\AdapterInterface $adapter, array $options = [] ) | Class constructor. | |
count ( ) : integer | ||
getCurrentPage ( ) : integer | Returns the current page. | |
getFirstPage ( ) : integer | Returns the first page. | |
getIterator ( ) : ArrayIterator | ||
getLastPage ( ) : integer | Returns the last page. | |
getLayout ( ) : |
Returns the layout object. | |
getLimit ( ) : integer | null | Get current rows limit (if provided) | |
getNextPage ( ) : integer | Returns the next page. | |
getPagesInRange ( ) : array | Returns array of page numbers that are in range of slider. | |
getPreviousPage ( ) : integer | Returns the previous page. | |
haveToPaginate ( ) : boolean | Return true if it's necessary to paginate or false if not. |
Method | Description | |
---|---|---|
getRangeClass ( ) : string | RangeClass option getter. | |
getRangeLength ( ) : integer | RangeLength option getter. |
public __construct ( Phalcon\Paginator\AdapterInterface $adapter, array $options = [] ) | ||
$adapter | Phalcon\Paginator\AdapterInterface | Phalcon paginator adapter |
$options | array | options array |
public getCurrentPage ( ) : integer | ||
return | integer |
public getFirstPage ( ) : integer | ||
return | integer |
public getLayout ( ) : |
||
return |
public getPagesInRange ( ) : array | ||
return | array | array of page numbers |
public getPreviousPage ( ) : integer | ||
return | integer |
protected getRangeClass ( ) : string | ||
return | string | range class name |
protected getRangeLength ( ) : integer | ||
return | integer | range length |
public haveToPaginate ( ) : boolean | ||
return | boolean |