Property | Type | Description | |
---|---|---|---|
$paginator | Knp\Component\Pager\Paginator |
Method | Description | |
---|---|---|
__construct ( ) | ||
getPaginator ( ) : Knp\Component\Pager\Paginator | Get paginator | |
paginate ( mixed $target, integer $pageNumber = 1, integer $limit = 10 ) : Knp\Bundle\PaginatorBundle\Pagination\SlidingPagination | Paginate target with passed page and limit, apply default pagination remplate to renderer | |
setPageParameterName ( string $pageParameterName ) : self | Set page partameter name | |
setRoute ( string $route ) : self | Set used route | |
setRouteParams ( array $params = [] ) : self | Set parameters required by route generator for used route |
public getPaginator ( ) : Knp\Component\Pager\Paginator | ||
return | Knp\Component\Pager\Paginator |
public setPageParameterName ( string $pageParameterName ) : self | ||
$pageParameterName | string | |
return | self |
public setRouteParams ( array $params = [] ) : self | ||
$params | array | Route parameters |
return | self |