Exponential 5.x Kernel 7.5.40 Exponential New Stack (Symfony-based) Kernel — PHP Class Reference

Search/Legacy/Content/Common/Gateway/CriterionHandler.php
Go to the documentation of this file.
1 <?php
2
7 namespace eZ\Publish\Core\Search\Legacy\Content\Common\Gateway;
8
9 use eZ\Publish\API\Repository\Values\Content\Query\Criterion;
10 use eZ\Publish\Core\Persistence\Database\DatabaseHandler;
11 use eZ\Publish\Core\Persistence\Database\SelectQuery;
12 use eZ\Publish\API\Repository\Values\Content\Query\Criterion\Operator;
13
14 abstract class CriterionHandler
15 {
22 protected $comparatorMap = [
23 Operator::EQ => 'eq',
24 Operator::GT => 'gt',
25 Operator::GTE => 'gte',
26 Operator::LT => 'lt',
27 Operator::LTE => 'lte',
28 Operator::LIKE => 'like',
29 ];
30
38 protected $dbHandler;
39
45 public function __construct(DatabaseHandler $dbHandler)
46 {
47 $this->dbHandler = $dbHandler;
48 }
49
57 abstract public function accept(Criterion $criterion);
58
69 abstract public function handle(
70 CriteriaConverter $converter,
71 SelectQuery $query,
72 Criterion $criterion,
73 array $languageSettings
74 );
75
81 protected function getUniqueTableName()
82 {
83 return uniqid('CriterionHandler', true);
84 }
85 }
eZ\Publish\API\Repository\Values\Content\Query\Criterion\Operator\LIKE
const LIKE
Does a lookup where a the value can contain a "*" (a wildcard) in order to match a pattern.
Definition: API/Repository/Values/Content/Query/Criterion/Operator.php:29
eZ\Publish\API\Repository\Values\Content\Query\Criterion\Operator\LT
const LT
Definition: API/Repository/Values/Content/Query/Criterion/Operator.php:19
eZ\Publish\API\Repository\Values\Content\Query\Criterion\Operator\EQ
const EQ
Definition: API/Repository/Values/Content/Query/Criterion/Operator.php:16
eZ\Publish\API\Repository\Values\Content\Query\Criterion\Operator\LTE
const LTE
Definition: API/Repository/Values/Content/Query/Criterion/Operator.php:20
eZ\Publish\API\Repository\Values\Content\Query\Criterion\Operator\GT
const GT
Definition: API/Repository/Values/Content/Query/Criterion/Operator.php:17
eZ\Publish\API\Repository\Values\Content\Query\Criterion\Operator\GTE
const GTE
Definition: API/Repository/Values/Content/Query/Criterion/Operator.php:18
eZ\Publish\API\Repository\Values\Content\Query\Criterion
Definition: API/Repository/Values/Content/Query/Criterion.php:15
eZ\Publish\Core\Search\Legacy\Content\Common\Gateway\CriteriaConverter
Content locator gateway implementation using the DoctrineDatabase.
Definition: Search/Legacy/Content/Common/Gateway/CriteriaConverter.php:17
eZ\Publish\Core\Search\Legacy\Content\Common\Gateway\CriterionHandler
Definition: Search/Legacy/Content/Common/Gateway/CriterionHandler.php:15
eZ\Publish\Core\Search\Legacy\Content\Common\Gateway\CriterionHandler\$comparatorMap
$comparatorMap
Definition: Search/Legacy/Content/Common/Gateway/CriterionHandler.php:22
eZ\Publish\Core\Search\Legacy\Content\Common\Gateway\CriterionHandler\__construct
__construct(DatabaseHandler $dbHandler)
Creates a new criterion handler.
Definition: Search/Legacy/Content/Common/Gateway/CriterionHandler.php:45
eZ\Publish\Core\Search\Legacy\Content\Common\Gateway\CriterionHandler\getUniqueTableName
getUniqueTableName()
Returns a unique table name.
Definition: Search/Legacy/Content/Common/Gateway/CriterionHandler.php:81
eZ\Publish\Core\Search\Legacy\Content\Common\Gateway\CriterionHandler\handle
handle(CriteriaConverter $converter, SelectQuery $query, Criterion $criterion, array $languageSettings)
Generate query expression for a Criterion this handler accepts.
eZ\Publish\Core\Search\Legacy\Content\Common\Gateway\CriterionHandler\accept
accept(Criterion $criterion)
Check if this criterion handler accepts to handle the given criterion.
eZ\Publish\Core\Search\Legacy\Content\Common\Gateway\CriterionHandler\$dbHandler
$dbHandler
Definition: Search/Legacy/Content/Common/Gateway/CriterionHandler.php:38
eZ\Publish\Core\Persistence\Database\DatabaseHandler
Interface for relational database abstractions supported by eZ.
Definition: DatabaseHandler.php:18
eZ\Publish\Core\Persistence\Database\SelectQuery
Definition: SelectQuery.php:16
eZ\Publish\API\Repository\Values\Content\Query\Criterion\Operator
Definition: Specifications.php:7
eZ\Publish\API\Repository\Values\Content\Query\Criterion
Definition: API/Repository/Values/Content/Query/Criterion/Ancestor.php:7
eZ\Publish\Core\Search\Legacy\Content\Common\Gateway
Definition: Search/Legacy/Content/Common/Gateway/CriteriaConverter.php:7
Copyright © 1998 – 2026 7x. All rights reserved. Licensed under the GNU GPLv2+.