Method | Description | |
---|---|---|
accept ( eZ\Publish\API\Repository\Values\Content\Query\Criterion $criterion ) : boolean | Check if this criterion handler accepts to handle the given criterion. | |
handle ( |
Generate query expression for a Criterion this handler accepts. |
Method | Description | |
---|---|---|
getBoundingConstraints ( eZ\Publish\Core\Persistence\Database\SelectQuery $query, eZ\Publish\API\Repository\Values\Content\Query\Criterion\Value\MapLocationValue $location, float $distance ) : array | Credit for the formula goes to http://janmatuschek.de/LatitudeLongitudeBoundingCoordinates. | |
getBoundingCoordinates ( eZ\Publish\API\Repository\Values\Content\Query\Criterion\Value\MapLocationValue $location, float $distance ) : array | Calculates and returns bounding box coordinates. | |
getFieldDefinitionIds ( string $fieldIdentifier ) : array | Returns a list of IDs of searchable FieldDefinitions for the given criterion target. | |
kilometersToDegrees ( $kilometers ) |
protected getBoundingConstraints ( eZ\Publish\Core\Persistence\Database\SelectQuery $query, eZ\Publish\API\Repository\Values\Content\Query\Criterion\Value\MapLocationValue $location, float $distance ) : array | ||
$query | eZ\Publish\Core\Persistence\Database\SelectQuery | |
$location | eZ\Publish\API\Repository\Values\Content\Query\Criterion\Value\MapLocationValue | |
$distance | float | |
return | array |
protected getBoundingCoordinates ( eZ\Publish\API\Repository\Values\Content\Query\Criterion\Value\MapLocationValue $location, float $distance ) : array | ||
$location | eZ\Publish\API\Repository\Values\Content\Query\Criterion\Value\MapLocationValue | |
$distance | float | |
return | array |
protected getFieldDefinitionIds ( string $fieldIdentifier ) : array | ||
$fieldIdentifier | string | |
return | array |
public handle ( |
||
$converter | ||
$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 |