/** * Feedback after showing/sending an alarm notification * * @see calendar_driver::dismiss_alarm() */ public function dismiss_alarm($event_id, $snooze = 0) { $success = parent::dismiss_alarm($event_id, $snooze); $success = false; $result = $this->rc->db->limitquery("SELECT calendar_id FROM " . $this->_get_table($this->db_events) . "\n WHERE event_id = ?", 0, 1, $event_id); $result = $this->rc->db->fetch_assoc($result); if (is_array($result)) { $cal_id = $result['calendar_id']; $props = $this->_get_caldav_props($event_id, self::OBJ_TYPE_VEVENT); $sync_client = $this->sync_clients[$cal_id]; if (is_array($props)) { if ($event = parent::get_master(array('id' => $event_id), false)) { $event = $this->_save_preprocess($event); $success = $sync_client->update_event($event, $props); } else { $success = false; } } else { $success = false; } } return $success; }