PHP Class Newscoop\TemplateList\PaginatedBaseList

Inheritance: extends BaseList
Afficher le fichier Open project: sourcefabric/newscoop Class Usage Examples

Protected Properties

Свойство Type Description
$cacheService Newscoop\Services\CacheService
$pageNumber integer
$pageParameterName string
$paginatorService Newscoop\Services\TemplatesService

Méthodes publiques

Méthode Description
__construct ( Criteria $criteria, TemplatesService $paginatorService, CacheService $cacheService )
getPageNumber ( ) : mixed Gets the value of pageNumber.
getPageParameterName ( ) : mixed Gets the value of pageParameterName.
getPaginator ( ) : Knp\Component\Pager\Paginator Get Paginator instance from PaginatorService
setPageNumber ( mixed $pageNumber = 1 ) : self Sets the value of pageNumber.
setPageParameterName ( mixed $pageParameterName ) : self Sets the value of pageParameterName.

Méthodes protégées

Méthode Description
paginateList ( mixed $target, integer $pageNumber, integer $maxResults, ListResult $list = null, boolean $useCache = true ) : ListResult Paginate target and fill list items

Method Details

__construct() public méthode

public __construct ( Criteria $criteria, TemplatesService $paginatorService, CacheService $cacheService )
$criteria Newscoop\Criteria
$paginatorService Newscoop\Services\TemplatesService
$cacheService Newscoop\Services\CacheService

getPageNumber() public méthode

Gets the value of pageNumber.
public getPageNumber ( ) : mixed
Résultat mixed

getPageParameterName() public méthode

Gets the value of pageParameterName.
public getPageParameterName ( ) : mixed
Résultat mixed

getPaginator() public méthode

Get Paginator instance from PaginatorService
public getPaginator ( ) : Knp\Component\Pager\Paginator
Résultat Knp\Component\Pager\Paginator

paginateList() protected méthode

Paginate target and fill list items
protected paginateList ( mixed $target, integer $pageNumber, integer $maxResults, ListResult $list = null, boolean $useCache = true ) : ListResult
$target mixed
$pageNumber integer
$maxResults integer
$list Newscoop\ListResult
$useCache boolean
Résultat Newscoop\ListResult

setPageNumber() public méthode

Sets the value of pageNumber.
public setPageNumber ( mixed $pageNumber = 1 ) : self
$pageNumber mixed the page number
Résultat self

setPageParameterName() public méthode

Sets the value of pageParameterName.
public setPageParameterName ( mixed $pageParameterName ) : self
$pageParameterName mixed the page parameter name
Résultat self

Property Details

$cacheService protected_oe property

protected CacheService,Newscoop\Services $cacheService
Résultat Newscoop\Services\CacheService

$pageNumber protected_oe property

protected int $pageNumber
Résultat integer

$pageParameterName protected_oe property

protected string $pageParameterName
Résultat string

$paginatorService protected_oe property

protected TemplatesService,Newscoop\Services $paginatorService
Résultat Newscoop\Services\TemplatesService