/** * Return id, flags and mod of a messageid * @see BackendDiff::StatMessage() */ public function StatMessage($folderid, $id) { ZLog::Write(LOGLEVEL_DEBUG, sprintf("BackendCalDAV->StatMessage('%s','%s')", $folderid, $id)); $type = "VEVENT"; if ($folderid[0] == "T") { $type = "VTODO"; } $data = null; if (array_key_exists($id, $this->_collection)) { $data = $this->_collection[$id]; } else { $path = $this->_caldav_path . substr($folderid, 1) . "/"; $e = $this->_caldav->GetEntryByUid(substr($id, 0, strlen($id) - 4), $path, $type); if ($e == null && count($e) <= 0) { return; } $data = $e[0]; } $message = array(); $message['id'] = $data['href']; $message['flags'] = "1"; $message['mod'] = $data['etag']; return $message; }