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

Inheritance: extends eZ\Publish\Core\Search\Elasticsearch\Content\FacetBuilderVisitor
ファイルを表示 Open project: ezsystems/ezpublish-kernel

Public Methods

Method 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.

Method Details

canMap() public method

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

canVisit() public method

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
return boolean

map() public method

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
return eZ\Publish\API\Repository\Values\Content\Search\Facet

visit() public method

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
return mixed