Class

eZ\Publish\Core\Pagination\Pagerfanta\ContentSearchAdapter

class ContentSearchAdapter extends ContentSearchHitAdapter

Pagerfanta adapter for eZ Publish content search.

Will return results as Content objects.

Methods

__construct(Query $query, SearchService $searchService)

from ContentSearchHitAdapter
int getNbResults()

Returns the number of results.

from ContentSearchHitAdapter
Content[] getSlice(int $offset, int $length)

Returns a slice of the results as Content objects.

Details

public __construct(Query $query, SearchService $searchService)

Parameters

Query $query
SearchService $searchService

public int getNbResults()

Returns the number of results.

Return Value

int The number of results.

at line 25
public Content[] getSlice(int $offset, int $length)

Returns a slice of the results as Content objects.

Parameters

int $offset The offset.
int $length The length.

Return Value

Content[]