PHP Класс eZ\Publish\Core\Search\Elasticsearch\Content\FacetBuilderVisitor\Aggregate

Наследование: extends eZ\Publish\Core\Search\Elasticsearch\Content\FacetBuilderVisitor
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$visitors eZ\Publish\Core\Search\Elasticsearch\Content\FacetBuilderVisitor[] Array of available visitors.

Открытые методы

Метод Описание
__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.

Описание методов

__construct() публичный Метод

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

addVisitor() публичный Метод

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

canMap() публичный Метод

Check if visitor is applicable to current facet result.
public canMap ( string $name ) : boolean
$name string
Результат boolean

canVisit() публичный Метод

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
Результат boolean

map() публичный Метод

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
Результат eZ\Publish\API\Repository\Values\Content\Search\Facet

visit() публичный Метод

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
Результат mixed

Описание свойств

$visitors защищенное свойство

Array of available visitors.
protected FacetBuilderVisitor[],eZ\Publish\Core\Search\Elasticsearch\Content $visitors
Результат eZ\Publish\Core\Search\Elasticsearch\Content\FacetBuilderVisitor[]