/** * Updates an existing event in the backend. * * @param Kronolith_Event_Horde $event The event to save. * * @return string The event id. * @throws Kronolith_Exception */ protected function _updateEvent(Kronolith_Event $event) { if (!isset($this->api)) { list($this->api, ) = explode('/', $this->calendar, 2); } try { $this->_params['registry']->call($this->api . '/saveTimeObject', array($event->toTimeobject())); } catch (Horde_Exception $e) { throw new Kronolith_Exception($e); } return $event->timeobject['id']; }