eZPublishCommunityProject  2013.9
eZ\Publish\Core\Persistence\Legacy\Content\Search\Gateway\CriterionHandler\Field Class Reference

Field criterion handler. More...

+ Inheritance diagram for eZ\Publish\Core\Persistence\Legacy\Content\Search\Gateway\CriterionHandler\Field:
+ Collaboration diagram for eZ\Publish\Core\Persistence\Legacy\Content\Search\Gateway\CriterionHandler\Field:

Public Member Functions

 __construct (EzcDbHandler $dbHandler, Registry $fieldConverterRegistry, FieldValueConverter $fieldValueConverter, TransformationProcessor $transformationProcessor)
 Construct from handler handler. More...
 
 accept (Criterion $criterion)
 Check if this criterion handler accepts to handle the given criterion. More...
 
 handle (CriteriaConverter $converter, ezcQuerySelect $query, Criterion $criterion)
 Generate query expression for a Criterion this handler accepts. More...
 
- Public Member Functions inherited from eZ\Publish\Core\Persistence\Legacy\Content\Search\Gateway\CriterionHandler
 __construct (EzcDbHandler $dbHandler)
 Creates a new criterion handler. More...
 
 accept (Criterion $criterion)
 Check if this criterion handler accepts to handle the given criterion. More...
 
 handle (CriteriaConverter $converter, ezcQuerySelect $query, Criterion $criterion)
 Generate query expression for a Criterion this handler accepts. More...
 

Protected Member Functions

 getFieldsInformation ($fieldIdentifier)
 Returns relevant field information for the specified field. More...
 
- Protected Member Functions inherited from eZ\Publish\Core\Persistence\Legacy\Content\Search\Gateway\CriterionHandler
 getUniqueTableName ()
 Returns a unique table name. More...
 

Protected Attributes

 $dbHandler
 
 $fieldConverterRegistry
 
 $fieldValueConverter
 
 $transformationProcessor
 
- Protected Attributes inherited from eZ\Publish\Core\Persistence\Legacy\Content\Search\Gateway\CriterionHandler
 $comparatorMap
 
 $dbHandler
 

Detailed Description

Field criterion handler.

Constructor & Destructor Documentation

eZ\Publish\Core\Persistence\Legacy\Content\Search\Gateway\CriterionHandler\Field::__construct ( EzcDbHandler  $dbHandler,
Registry  $fieldConverterRegistry,
FieldValueConverter  $fieldValueConverter,
TransformationProcessor  $transformationProcessor 
)

Construct from handler handler.

Parameters
\eZ\Publish\Core\Persistence\Legacy\EzcDbHandler$dbHandler
\eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\ConverterRegistry$fieldConverterRegistry
\eZ\Publish\Core\Persistence\Legacy\Content\Search\Gateway\CriterionHandler\FieldValue\Converter$fieldValueConverter
\eZ\Publish\Core\Persistence\TransformationProcessor$transformationProcessor

Member Function Documentation

eZ\Publish\Core\Persistence\Legacy\Content\Search\Gateway\CriterionHandler\Field::accept ( Criterion  $criterion)

Check if this criterion handler accepts to handle the given criterion.

Parameters
\eZ\Publish\API\Repository\Values\Content\Query\Criterion$criterion
Returns
boolean
eZ\Publish\Core\Persistence\Legacy\Content\Search\Gateway\CriterionHandler\Field::getFieldsInformation (   $fieldIdentifier)
protected

Returns relevant field information for the specified field.

The returned information is returned as an array of the attribute identifier and the sort column, which should be used.

Exceptions
\eZ\Publish\Core\Base\Exceptions\InvalidArgumentExceptionIf no searchable fields are found for the given $fieldIdentifier.
Parameters
string$fieldIdentifier
Returns
array

Referenced by eZ\Publish\Core\Persistence\Legacy\Content\Search\Gateway\CriterionHandler\Field\handle().

eZ\Publish\Core\Persistence\Legacy\Content\Search\Gateway\CriterionHandler\Field::handle ( CriteriaConverter  $converter,
ezcQuerySelect  $query,
Criterion  $criterion 
)

Generate query expression for a Criterion this handler accepts.

accept() must be called before calling this method.

Exceptions
\eZ\Publish\Core\Base\Exceptions\InvalidArgumentExceptionIf no searchable fields are found for the given criterion target.
Parameters
\eZ\Publish\Core\Persistence\Legacy\Content\Search\Gateway\CriteriaConverter$converter
\ezcQuerySelect$query
\eZ\Publish\API\Repository\Values\Content\Query\Criterion$criterion
Returns

Member Data Documentation

eZ\Publish\Core\Persistence\Legacy\Content\Search\Gateway\CriterionHandler\Field::$dbHandler
protected
eZ\Publish\Core\Persistence\Legacy\Content\Search\Gateway\CriterionHandler\Field::$fieldConverterRegistry
protected
eZ\Publish\Core\Persistence\Legacy\Content\Search\Gateway\CriterionHandler\Field::$fieldValueConverter
protected
eZ\Publish\Core\Persistence\Legacy\Content\Search\Gateway\CriterionHandler\Field::$transformationProcessor
protected

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