PHP 클래스 eZ\Publish\Core\Search\Legacy\Content\Common\Gateway\CriterionHandler\MapLocationDistance

상속: extends FieldBase
파일 보기 프로젝트 열기: ezsystems/ezpublish-kernel

공개 메소드들

메소드 설명
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.

보호된 메소드들

메소드 설명
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 )

메소드 상세

accept() 공개 메소드

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
리턴 boolean

getBoundingConstraints() 보호된 메소드

Credit for the formula goes to http://janmatuschek.de/LatitudeLongitudeBoundingCoordinates.
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
리턴 array

getBoundingCoordinates() 보호된 메소드

Credits: http://janmatuschek.de/LatitudeLongitudeBoundingCoordinates
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
리턴 array

getFieldDefinitionIds() 보호된 메소드

Returns a list of IDs of searchable FieldDefinitions for the given criterion target.
protected getFieldDefinitionIds ( string $fieldIdentifier ) : array
$fieldIdentifier string
리턴 array

handle() 공개 메소드

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
리턴 eZ\Publish\Core\Persistence\Database\Expression

kilometersToDegrees() 보호된 메소드

protected kilometersToDegrees ( $kilometers )