Class

eZ\Publish\Core\Search\Elasticsearch\Content\FacetBuilderVisitor\User

class User extends FacetBuilderVisitor

Visits the User facet builder.

Methods

bool canMap(string $name)

Check if visitor is applicable to current facet result.

Facet map(string $name, mixed $data)

Map Elasticsearch facet result back to facet objects.

bool canVisit(FacetBuilder $facetBuilder)

Check if visitor is applicable to current facet builder.

mixed visit(FacetBuilder $facetBuilder)

Map facet builder to a proper Elasticsearch representation.

Details

at line 27
public bool canMap(string $name)

Check if visitor is applicable to current facet result.

Parameters

string $name

Return Value

bool

at line 40
public Facet map(string $name, mixed $data)

Map Elasticsearch facet result back to facet objects.

Parameters

string $name
mixed $data

Return Value

Facet

at line 57
public bool canVisit(FacetBuilder $facetBuilder)

Check if visitor is applicable to current facet builder.

Parameters

FacetBuilder $facetBuilder

Return Value

bool

at line 69
public mixed visit(FacetBuilder $facetBuilder)

Map facet builder to a proper Elasticsearch representation.

Parameters

FacetBuilder $facetBuilder

Return Value

mixed Hash representation of Elasticsearch aggregations