프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$_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 |
public __construct ( Horde_Db_Adapter $adapter ) : Kronolith_Geo_Base | ||
$adapter | Horde_Db_Adapter | The Horde_Db adapter |
리턴 | Kronolith_Geo_Base |
abstract public deleteLocation ( string $event_id ) | ||
$event_id | string | The event it. |
abstract public getLocation ( string $event_id ) : array | ||
$event_id | string | The event id |
리턴 | array | A hash containing 'lat' and 'lon' |
abstract public search ( array $criteria ) : array | ||
$criteria | array | An array of:
point - lat/lon hash radius - the radius to search in limit - limit the number of hits factor - Conversion factor for miles per distance unit [default is 69]. |
리턴 | array | of event ids with locations near the specified criteria. |
abstract public setLocation ( string $event_id, array $point ) | ||
$event_id | string | The event id |
$point | array | Hash containing 'lat' and 'lon' coordinates |