eZPublishCommunityProject  2012.12
eZ\Publish\Core\Persistence\Solr\Content\Search\CriterionVisitor Class Reference

Visits the criterion tree into a Solr query. More...

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

Public Member Functions

 canVisit (Criterion $criterion)
 CHeck if visitor is applicable to current criterion. More...
 
 visit (Criterion $criterion, CriterionVisitor $subVisitor=null)
 Map field value to a proper Solr representation. More...
 

Protected Member Functions

 getRange ($operator, $start, $end)
 Get Solr range. More...
 

Detailed Description

Visits the criterion tree into a Solr query.

Member Function Documentation

eZ\Publish\Core\Persistence\Solr\Content\Search\CriterionVisitor::canVisit ( Criterion  $criterion)
abstract

CHeck if visitor is applicable to current criterion.

Parameters
Criterion$criterion
Returns
boolean
eZ\Publish\Core\Persistence\Solr\Content\Search\CriterionVisitor::getRange (   $operator,
  $start,
  $end 
)
protected

Get Solr range.

Start and end are optional, depending on the respective operator. Pass null in this case. The operator may be one of:

Parameters
mixed$operator
mixed$start
mixed$end
Returns
void

Referenced by eZ\Publish\Core\Persistence\Solr\Content\Search\CriterionVisitor\Field\FieldRange\visit(), eZ\Publish\Core\Persistence\Solr\Content\Search\CriterionVisitor\DateMetadata\PublishedBetween\visit(), and eZ\Publish\Core\Persistence\Solr\Content\Search\CriterionVisitor\DateMetadata\ModifiedBetween\visit().

eZ\Publish\Core\Persistence\Solr\Content\Search\CriterionVisitor::visit ( Criterion  $criterion,
CriterionVisitor  $subVisitor = null 
)
abstract

Map field value to a proper Solr representation.

Parameters
Criterion$criterion
CriterionVisitor$subVisitor
Returns
void

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