eZPublishCommunityProject  2013.9
eZ\Publish\Core\Persistence\Solr\Content\Search\FacetBuilderVisitor Class Reference

Visits the facet builder tree into a Solr query. More...

+ Inheritance diagram for eZ\Publish\Core\Persistence\Solr\Content\Search\FacetBuilderVisitor:

Public Member Functions

 canMap ($field)
 CHeck if visitor is applicable to current facet result. More...
 
 canVisit (FacetBuilder $facetBuilder)
 CHeck if visitor is applicable to current facet builder. More...
 
 map ($field, array $data)
 Map Solr facet result back to facet objects. More...
 
 visit (FacetBuilder $facetBuilder)
 Map field value to a proper Solr representation. More...
 

Protected Member Functions

 mapData (array $data)
 Map Solr return array into a sane hash map. More...
 

Detailed Description

Visits the facet builder tree into a Solr query.

Member Function Documentation

eZ\Publish\Core\Persistence\Solr\Content\Search\FacetBuilderVisitor::canMap (   $field)
abstract

CHeck if visitor is applicable to current facet result.

Parameters
string$field
Returns
boolean
eZ\Publish\Core\Persistence\Solr\Content\Search\FacetBuilderVisitor::canVisit ( FacetBuilder  $facetBuilder)
abstract

CHeck if visitor is applicable to current facet builder.

Parameters
FacetBuilder$facetBuilder
Returns
boolean
eZ\Publish\Core\Persistence\Solr\Content\Search\FacetBuilderVisitor::map (   $field,
array  $data 
)
abstract

Map Solr facet result back to facet objects.

Parameters
string$field
array$data
Returns
Facet
eZ\Publish\Core\Persistence\Solr\Content\Search\FacetBuilderVisitor::mapData ( array  $data)
protected
eZ\Publish\Core\Persistence\Solr\Content\Search\FacetBuilderVisitor::visit ( FacetBuilder  $facetBuilder)
abstract

Map field value to a proper Solr representation.

Parameters
FacetBuilder$facetBuilder
Returns
string

The documentation for this class was generated from the following file: