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])
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$_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