From a5e17fe438085549d0c41af8430b395b447b2d7b Mon Sep 17 00:00:00 2001 From: Andrew McMillan Date: Fri, 1 Jun 2007 07:49:35 +1200 Subject: [PATCH] Change GetEventRange to GetEvents() and leave out the filter if not supplied. --- inc/caldav-client.php | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/inc/caldav-client.php b/inc/caldav-client.php index b6a40b04..4ed90be1 100644 --- a/inc/caldav-client.php +++ b/inc/caldav-client.php @@ -268,14 +268,11 @@ class CalDAVClient { * * @return array An array of the relative URLs, etags, and events from the server */ - function GetEventRange( $start, $finish ) { - $xml = << - - - - - + function GetEvents( $start, $finish ) { + $filter = ""; + if ( $start && $finish ) { + $filter = << @@ -283,6 +280,16 @@ class CalDAVClient { +EOFILTER; + } + + $xml = << + + + + + $filter EOXML; $this->SetDepth("1");