PHP Class eZ\Publish\Core\Search\Elasticsearch\Content\FacetBuilderVisitor\Aggregate

Inheritance: extends eZ\Publish\Core\Search\Elasticsearch\Content\FacetBuilderVisitor
Afficher le fichier Open project: ezsystems/ezpublish-kernel

Protected Properties

Свойство Type Description
$visitors eZ\Publish\Core\Search\Elasticsearch\Content\FacetBuilderVisitor[] Array of available visitors.

Méthodes publiques

Méthode Description
__construct ( array $visitors = [] ) Construct from optional visitor array.
addVisitor ( FacetBuilderVisitor $visitor ) Adds visitor.
canMap ( string $name ) : boolean Check if visitor is applicable to current facet result.
canVisit ( eZ\Publish\API\Repository\Values\Content\Query\FacetBuilder $facetBuilder ) : boolean Check if visitor is applicable to current facet builder.
map ( string $name, mixed $data ) : eZ\Publish\API\Repository\Values\Content\Search\Facet Map Elasticsearch facet result back to facet objects.
visit ( eZ\Publish\API\Repository\Values\Content\Query\FacetBuilder $facetBuilder ) : mixed Map facet builder to a proper Elasticsearch representation.

Method Details

__construct() public méthode

Construct from optional visitor array.
public __construct ( array $visitors = [] )
$visitors array

addVisitor() public méthode

Adds visitor.
public addVisitor ( FacetBuilderVisitor $visitor )
$visitor eZ\Publish\Core\Search\Elasticsearch\Content\FacetBuilderVisitor

canMap() public méthode

Check if visitor is applicable to current facet result.
public canMap ( string $name ) : boolean
$name string
Résultat boolean

canVisit() public méthode

Check if visitor is applicable to current facet builder.
public canVisit ( eZ\Publish\API\Repository\Values\Content\Query\FacetBuilder $facetBuilder ) : boolean
$facetBuilder eZ\Publish\API\Repository\Values\Content\Query\FacetBuilder
Résultat boolean

map() public méthode

Map Elasticsearch facet result back to facet objects.
public map ( string $name, mixed $data ) : eZ\Publish\API\Repository\Values\Content\Search\Facet
$name string
$data mixed
Résultat eZ\Publish\API\Repository\Values\Content\Search\Facet

visit() public méthode

Map facet builder to a proper Elasticsearch representation.
public visit ( eZ\Publish\API\Repository\Values\Content\Query\FacetBuilder $facetBuilder ) : mixed
$facetBuilder eZ\Publish\API\Repository\Values\Content\Query\FacetBuilder
Résultat mixed

Property Details

$visitors protected_oe property

Array of available visitors.
protected FacetBuilderVisitor[],eZ\Publish\Core\Search\Elasticsearch\Content $visitors
Résultat eZ\Publish\Core\Search\Elasticsearch\Content\FacetBuilderVisitor[]