Свойство | Тип | Описание | |
---|---|---|---|
$limit | integer | null | Current rows limit (if provided) | |
$options | array | Array with options. | |
$paginateResult | stdClass | Phalcon's paginate result. |
Метод | Описание | |
---|---|---|
__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. |
Метод | Описание | |
---|---|---|
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 | ||
Результат | integer |
public getFirstPage ( ) : integer | ||
Результат | integer |
public getLastPage ( ) : integer | ||
Результат | integer |
public getLayout ( ) : |
||
Результат |
public getNextPage ( ) : integer | ||
Результат | integer |
public getPagesInRange ( ) : array | ||
Результат | array | array of page numbers |
public getPreviousPage ( ) : integer | ||
Результат | integer |
protected getRangeClass ( ) : string | ||
Результат | string | range class name |
protected getRangeLength ( ) : integer | ||
Результат | integer | range length |
public haveToPaginate ( ) : boolean | ||
Результат | boolean |