/** * Updates an existing event in the backend. * * @param Kronolith_Event $event The event to save. * * @return string The event id. * @throws Horde_Mime_Exception * @throws Kronolith_Exception */ protected function _updateEvent(Kronolith_Event $event) { $response = $this->_saveEvent($event); if (!in_array($response['statusCode'], array(200, 204))) { // To find out if $response still contains the final URL after the refactoring Horde::debug($response); Horde::log(sprintf('Failed to update event on remote calendar: url = "%s", status = %s', '', $response['body']), 'INFO'); throw new Kronolith_Exception(_("The event could not be updated on the remote server.")); } return $event->id; }