PHP 클래스 Kronolith_Geo_Base, horde

Copyright 2009-2016 Horde LLC (http://www.horde.org/) See the enclosed file COPYING for license information (GPL). If you did not receive this file, see http://www.horde.org/licenses/gpl.
저자: Michael J. Rubinsky ([email protected])
파일 보기 프로젝트 열기: horde/horde

보호된 프로퍼티들

프로퍼티 타입 설명
$_db Horde_Db_Adapter

공개 메소드들

메소드 설명
__construct ( Horde_Db_Adapter $adapter ) : Kronolith_Geo_Base
deleteLocation ( string $event_id ) Removes the event's location from storage.
getLocation ( string $event_id ) : array Retrieve the location of the specified event.
search ( array $criteria ) : array Search for events close to a given point.
setLocation ( string $event_id, array $point ) Save location of event to storage

메소드 상세

__construct() 공개 메소드

public __construct ( Horde_Db_Adapter $adapter ) : Kronolith_Geo_Base
$adapter Horde_Db_Adapter The Horde_Db adapter
리턴 Kronolith_Geo_Base

deleteLocation() 추상적인 공개 메소드

Removes the event's location from storage.
abstract public deleteLocation ( string $event_id )
$event_id string The event it.

getLocation() 추상적인 공개 메소드

Retrieve the location of the specified event.
abstract public getLocation ( string $event_id ) : array
$event_id string The event id
리턴 array A hash containing 'lat' and 'lon'

setLocation() 추상적인 공개 메소드

Save location of event to storage
abstract public setLocation ( string $event_id, array $point )
$event_id string The event id
$point array Hash containing 'lat' and 'lon' coordinates

프로퍼티 상세

$_db 보호되어 있는 프로퍼티

protected Horde_Db_Adapter $_db
리턴 Horde_Db_Adapter