PHP Class eZ\Publish\Core\Search\Legacy\Content\Common\Gateway\CriterionHandler\Field

Inheritance: extends eZ\Publish\Core\Search\Legacy\Content\Common\Gateway\CriterionHandler
Datei anzeigen Open project: ezsystems/ezpublish-kernel

Protected Properties

Property Type Description
$fieldConverterRegistry eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\ConverterRegistry Field converter registry.
$fieldValueConverter eZ\Publish\Core\Search\Legacy\Content\Common\Gateway\CriterionHandler\FieldValue\Converter Field value converter.
$transformationProcessor eZ\Publish\Core\Persistence\TransformationProcessor Transformation processor.

Public Methods

Method Description
__construct ( eZ\Publish\Core\Persistence\Database\DatabaseHandler $dbHandler, eZ\Publish\SPI\Persistence\Content\Type\Handler $contentTypeHandler, eZ\Publish\SPI\Persistence\Content\Language\Handler $languageHandler, ConverterRegistry $fieldConverterRegistry, Converter $fieldValueConverter, TransformationProcessor $transformationProcessor ) Construct from handler handler.
accept ( eZ\Publish\API\Repository\Values\Content\Query\Criterion $criterion ) : boolean Check if this criterion handler accepts to handle the given criterion.
handle ( CriteriaConverter $converter, eZ\Publish\Core\Persistence\Database\SelectQuery $query, eZ\Publish\API\Repository\Values\Content\Query\Criterion $criterion, array $languageSettings ) : eZ\Publish\Core\Persistence\Database\Expression Generate query expression for a Criterion this handler accepts.

Protected Methods

Method Description
getFieldsInformation ( string $fieldIdentifier ) : array Returns relevant field information for the specified field.

Method Details

__construct() public method

Construct from handler handler.
public __construct ( eZ\Publish\Core\Persistence\Database\DatabaseHandler $dbHandler, eZ\Publish\SPI\Persistence\Content\Type\Handler $contentTypeHandler, eZ\Publish\SPI\Persistence\Content\Language\Handler $languageHandler, ConverterRegistry $fieldConverterRegistry, Converter $fieldValueConverter, TransformationProcessor $transformationProcessor )
$dbHandler eZ\Publish\Core\Persistence\Database\DatabaseHandler
$contentTypeHandler eZ\Publish\SPI\Persistence\Content\Type\Handler
$languageHandler eZ\Publish\SPI\Persistence\Content\Language\Handler
$fieldConverterRegistry eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\ConverterRegistry
$fieldValueConverter eZ\Publish\Core\Search\Legacy\Content\Common\Gateway\CriterionHandler\FieldValue\Converter
$transformationProcessor eZ\Publish\Core\Persistence\TransformationProcessor

accept() public method

Check if this criterion handler accepts to handle the given criterion.
public accept ( eZ\Publish\API\Repository\Values\Content\Query\Criterion $criterion ) : boolean
$criterion eZ\Publish\API\Repository\Values\Content\Query\Criterion
return boolean

getFieldsInformation() protected method

The returned information is returned as an array of the attribute identifier and the sort column, which should be used.
protected getFieldsInformation ( string $fieldIdentifier ) : array
$fieldIdentifier string
return array

handle() public method

accept() must be called before calling this method.
public handle ( CriteriaConverter $converter, eZ\Publish\Core\Persistence\Database\SelectQuery $query, eZ\Publish\API\Repository\Values\Content\Query\Criterion $criterion, array $languageSettings ) : eZ\Publish\Core\Persistence\Database\Expression
$converter eZ\Publish\Core\Search\Legacy\Content\Common\Gateway\CriteriaConverter
$query eZ\Publish\Core\Persistence\Database\SelectQuery
$criterion eZ\Publish\API\Repository\Values\Content\Query\Criterion
$languageSettings array
return eZ\Publish\Core\Persistence\Database\Expression

Property Details

$fieldConverterRegistry protected_oe property

Field converter registry.
protected ConverterRegistry,eZ\Publish\Core\Persistence\Legacy\Content\FieldValue $fieldConverterRegistry
return eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\ConverterRegistry

$fieldValueConverter protected_oe property

Field value converter.
protected Converter,eZ\Publish\Core\Search\Legacy\Content\Common\Gateway\CriterionHandler\FieldValue $fieldValueConverter
return eZ\Publish\Core\Search\Legacy\Content\Common\Gateway\CriterionHandler\FieldValue\Converter

$transformationProcessor protected_oe property

Transformation processor.
protected TransformationProcessor,eZ\Publish\Core\Persistence $transformationProcessor
return eZ\Publish\Core\Persistence\TransformationProcessor