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

Afficher le fichier Open project: ezsystems/ezpublish-kernel Class Usage Examples

Méthodes publiques

Méthode Description
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.

Méthodes protégées

Méthode Description
mapData ( mixed $data ) : array Map Elasticsearch return array into a sane hash map.

Method Details

canMap() abstract public méthode

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

canVisit() abstract public méthode

Check if visitor is applicable to current facet builder.
abstract 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() abstract public méthode

Map Elasticsearch facet result back to facet objects.
abstract 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

mapData() protected méthode

Map Elasticsearch return array into a sane hash map.
protected mapData ( mixed $data ) : array
$data mixed
Résultat array

visit() abstract public méthode

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