Property | Type | Description | |
---|---|---|---|
$pagination | Pagination object with parsed data from request. | ||
$paginationData | array | Extra data injected to response when result have more items than requested. | |
$paginator | Knp\Component\Pager\Paginator | Paginator class | |
$partialResponse | PartialResponse object with parsed data from request. | ||
$route | string | Used route name | |
$routeParams | array | Used route params | |
$router | Router class |
Method | Description | |
---|---|---|
__construct ( Knp\Component\Pager\Paginator $paginator, |
Construct Paginator service object | |
getPagination ( ) : |
Get Pagination object | |
getPartialResponse ( ) : |
Get PartialResponse object | |
paginate ( mixed $data, array $params = [] ) : array | Paginate data | |
setPagination ( |
Set Pagination object | |
setPaginationData ( array $paginationData ) | Set pagination data from paginator | |
setPartialResponse ( |
Set PartialResponse object | |
setUsedRoute ( string $route ) | Set used route | |
setUsedRouteParams ( array $params = [] ) | Set parameters required by route generator for used route |
Method | Description | |
---|---|---|
getPaginationLinks ( array $paginationData ) : array | Generate links for pagination object |
public __construct ( Knp\Component\Pager\Paginator $paginator, |
||
$paginator | Knp\Component\Pager\Paginator | Paginator object |
$router | Router object |
public getPagination ( ) : |
||
return | Pagination object |
public getPartialResponse ( ) : |
||
return | PartialResponse object |
public setPagination ( |
||
$pagination | Pagination object |
public setPaginationData ( array $paginationData ) | ||
$paginationData | array | array with calculated pagination data |
public setPartialResponse ( |
||
$partialResponse | PartialResponse object |
public setUsedRoute ( string $route ) | ||
$route | string | Used route in request |
public setUsedRouteParams ( array $params = [] ) | ||
$params | array | Route parameters |
protected Pagination,Newscoop\Gimme $pagination | ||
return |
protected array $paginationData | ||
return | array |
protected Paginator,Knp\Component\Pager $paginator | ||
return | Knp\Component\Pager\Paginator |
protected PartialResponse,Newscoop\Gimme $partialResponse | ||
return |