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])
Datei anzeigen Open project: horde/horde

Protected Properties

Property Type Description
$_db Horde_Db_Adapter

Public Methods

Method 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 method

public __construct ( Horde_Db_Adapter $adapter ) : Kronolith_Geo_Base
$adapter Horde_Db_Adapter The Horde_Db adapter
return Kronolith_Geo_Base

deleteLocation() abstract public method

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

getLocation() abstract public method

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

setLocation() abstract public method

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
return Horde_Db_Adapter