return $driver;
}
- /**
- * Delete an entry from storage
- *
- * @param string $event_id
- *
- * @return void
- */
- public function deleteLocation($event_id)
- {
- $sql = "DELETE FROM kronolith_events_geo WHERE event_id = '" . $event_id . "'";
- $result = $this->_write_db->query($sql);
- if ($result instanceof PEAR_Error) {
- throw new Horde_Exception($result->getMessage());
- }
- }
-
abstract public function setLocation($event_id, $point);
abstract public function getLocation($event_id);
- abstract public function removeLocation($event_id);
+ abstract public function deleteLocation($event_id);
abstract public function search($criteria);
}
\ No newline at end of file
}
/**
+ * Deletes an entry from storage
*
* @see kronolith/lib/Driver/Kronolith_Driver_Geo#removeLocation($event_id)
+ *
+ * @param string $event_id
+ *
+ * @throws Kronolith_Exception
*/
- public function removeLocation($event_id)
+ public function deleteLocation($event_id)
{
$sql = 'DELETE FROM kronolith_events_geo WHERE event_id = ?';
$this->_write_db->query($sql, array($event_id));