PHP Class 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.
Author: Michael J. Rubinsky ([email protected])
Afficher le fichier Open project: horde/horde

Protected Properties

Свойство Type Description
$_db Horde_Db_Adapter

Méthodes publiques

Méthode Description
__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

Method Details

__construct() public méthode

public __construct ( Horde_Db_Adapter $adapter ) : Kronolith_Geo_Base
$adapter Horde_Db_Adapter The Horde_Db adapter
Résultat Kronolith_Geo_Base

deleteLocation() abstract public méthode

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

getLocation() abstract public méthode

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

setLocation() abstract public méthode

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

Property Details

$_db protected_oe property

protected Horde_Db_Adapter $_db
Résultat Horde_Db_Adapter