/** * Get a list of all the messages. * @see BackendDiff::GetMessageList() */ public function GetMessageList($folderid, $cutoffdate) { ZLog::Write(LOGLEVEL_DEBUG, sprintf("BackendCalDAV->GetMessageList('%s','%s')", $folderid, $cutoffdate)); /* Calculating the range of events we want to sync */ $begin = gmdate("Ymd\\THis\\Z", $cutoffdate); $finish = gmdate("Ymd\\THis\\Z", 2147483647); $path = $this->_caldav_path . substr($folderid, 1) . "/"; if ($folderid[0] == "C") { $msgs = $this->_caldav->GetEvents($begin, $finish, $path); } else { $msgs = $this->_caldav->GetTodos($begin, $finish, false, false, $path); } $messages = array(); foreach ($msgs as $e) { $id = $e['href']; $this->_collection[$id] = $e; $messages[] = $this->StatMessage($folderid, $id); } return $messages; }