PHP Class eZ\Publish\Core\Pagination\Pagerfanta\ContentSearchHitAdapter

Will return results as SearchHit objects.
Inheritance: implements Pagerfanta\Adapter\AdapterInterface
Exibir arquivo Open project: ezsystems/ezpublish-kernel

Public Methods

Method Description
__construct ( eZ\Publish\API\Repository\Values\Content\Query $query, eZ\Publish\API\Repository\SearchService $searchService )
getNbResults ( ) : integer Returns the number of results.
getSlice ( integer $offset, integer $length ) : eZ\Publish\API\Repository\Values\Content\Search\SearchHit[] Returns a slice of the results, as SearchHit objects.

Method Details

__construct() public method

public __construct ( eZ\Publish\API\Repository\Values\Content\Query $query, eZ\Publish\API\Repository\SearchService $searchService )
$query eZ\Publish\API\Repository\Values\Content\Query
$searchService eZ\Publish\API\Repository\SearchService

getNbResults() public method

Returns the number of results.
public getNbResults ( ) : integer
return integer The number of results.

getSlice() public method

Returns a slice of the results, as SearchHit objects.
public getSlice ( integer $offset, integer $length ) : eZ\Publish\API\Repository\Values\Content\Search\SearchHit[]
$offset integer The offset.
$length integer The length.
return eZ\Publish\API\Repository\Values\Content\Search\SearchHit[]