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

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

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

Public Member Functions

 __construct (array $visitors=array())
 COnstruct from optional visitor array. More...
 
 addVisitor (FacetBuilderVisitor $visitor)
 Adds visitor. More...
 
 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...
 
- Public Member Functions inherited from eZ\Publish\Core\Persistence\Solr\Content\Search\FacetBuilderVisitor
 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 Attributes

 $visitors = array()
 

Additional Inherited Members

- Protected Member Functions inherited from eZ\Publish\Core\Persistence\Solr\Content\Search\FacetBuilderVisitor
 mapData (array $data)
 Map Solr return array into a sane hash map. More...
 

Detailed Description

Visits the facet builder tree into a Solr query.

Constructor & Destructor Documentation

eZ\Publish\Core\Persistence\Solr\Content\Search\FacetBuilderVisitor\Aggregate::__construct ( array  $visitors = array())

COnstruct from optional visitor array.

Parameters
array$visitors
Returns
void

Member Function Documentation

eZ\Publish\Core\Persistence\Solr\Content\Search\FacetBuilderVisitor\Aggregate::addVisitor ( FacetBuilderVisitor  $visitor)

Adds visitor.

Parameters
FieldValueVisitor$visitor
Returns
void

Referenced by eZ\Publish\Core\Persistence\Solr\Content\Search\FacetBuilderVisitor\Aggregate\__construct().

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

CHeck if visitor is applicable to current facet result.

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

CHeck if visitor is applicable to current facet builder.

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

Map Solr facet result back to facet objects.

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

Map field value to a proper Solr representation.

Parameters
FacetBuilder$facetBuilder
Returns
void

Member Data Documentation

eZ\Publish\Core\Persistence\Solr\Content\Search\FacetBuilderVisitor\Aggregate::$visitors = array()
protected

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