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

Show file 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 zeta Database abstraction layer.
$dbHandler eZ\Publish\Core\Persistence\Database\DatabaseHandler Database handler.

Public Methods

Method Description
__construct ( eZ\Publish\Core\Persistence\Database\DatabaseHandler $dbHandler ) Creates a new criterion 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 ) Generate query expression for a Criterion this handler accepts.

Protected Methods

Method Description
getUniqueTableName ( ) : string Returns a unique table name.

Method Details

__construct() public method

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

accept() abstract public method

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

getUniqueTableName() protected method

Returns a unique table name.
protected getUniqueTableName ( ) : string
return string

handle() abstract public method

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

Property Details

$comparatorMap protected property

Map of criterion operators to the respective function names in the zeta Database abstraction layer.
protected array $comparatorMap
return array

$dbHandler protected property

Database handler.
protected DatabaseHandler,eZ\Publish\Core\Persistence\Database $dbHandler
return eZ\Publish\Core\Persistence\Database\DatabaseHandler