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

显示文件 Open project: ezsystems/ezpublish-kernel Class Usage Examples

Protected Properties

Property Type Description
$comparatorMap array Map of criterion operators to the respective function names in the DoctrineDatabase DBAL.
$dbHandler eZ\Publish\Core\Persistence\Database\DatabaseHandler DB handler to fetch additional field information.
$transformationProcessor eZ\Publish\Core\Persistence\TransformationProcessor Transformation processor.

Public Methods

Method Description
__construct ( eZ\Publish\Core\Persistence\Database\DatabaseHandler $dbHandler, TransformationProcessor $transformationProcessor ) Creates a new criterion handler.
handle ( eZ\Publish\Core\Persistence\Database\SelectQuery $query, eZ\Publish\API\Repository\Values\Content\Query\Criterion $criterion, string $column ) : eZ\Publish\Core\Persistence\Database\Expression Generates query expression for operator and value of a Field Criterion.

Protected Methods

Method Description
lowerCase ( string $string ) : string Downcases a given string using string transformation processor.

Method Details

__construct() public method

Creates a new criterion handler.
public __construct ( eZ\Publish\Core\Persistence\Database\DatabaseHandler $dbHandler, TransformationProcessor $transformationProcessor )
$dbHandler eZ\Publish\Core\Persistence\Database\DatabaseHandler
$transformationProcessor eZ\Publish\Core\Persistence\TransformationProcessor

handle() public method

Generates query expression for operator and value of a Field Criterion.
public handle ( eZ\Publish\Core\Persistence\Database\SelectQuery $query, eZ\Publish\API\Repository\Values\Content\Query\Criterion $criterion, string $column ) : eZ\Publish\Core\Persistence\Database\Expression
$query eZ\Publish\Core\Persistence\Database\SelectQuery
$criterion eZ\Publish\API\Repository\Values\Content\Query\Criterion
$column string
return eZ\Publish\Core\Persistence\Database\Expression

lowerCase() protected method

Downcases a given string using string transformation processor.
protected lowerCase ( string $string ) : string
$string string
return string

Property Details

$comparatorMap protected_oe property

Map of criterion operators to the respective function names in the DoctrineDatabase DBAL.
protected array $comparatorMap
return array

$dbHandler protected_oe property

DB handler to fetch additional field information.
protected DatabaseHandler,eZ\Publish\Core\Persistence\Database $dbHandler
return eZ\Publish\Core\Persistence\Database\DatabaseHandler

$transformationProcessor protected_oe property

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