From 379747180a431a443deb955a53f55fc7b8f3724a Mon Sep 17 00:00:00 2001 From: Andrew McMillan Date: Mon, 2 Nov 2009 10:02:18 +1300 Subject: [PATCH] Add support for supported-method-set & supported-report-set. --- inc/caldav-PROPFIND.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/inc/caldav-PROPFIND.php b/inc/caldav-PROPFIND.php index 3df5cf60..d1cb7f25 100644 --- a/inc/caldav-PROPFIND.php +++ b/inc/caldav-PROPFIND.php @@ -61,6 +61,8 @@ foreach( $request->xml_tags AS $k => $v ) { case 'DAV::allprop': /** limited support, needs to be checked for correctness at some point */ case 'DAV::group-member-set': /** limited support, at the moment used for caldav proxy */ case 'DAV::group-membership': /** limited support, at the moment used for caldav proxy */ + case 'DAV::supported-method-set': /** Should work fine */ + case 'DAV::supported-report-set': /** Should work fine */ /** * Handled CalDAV properties @@ -297,6 +299,14 @@ function add_general_properties( &$prop, &$denied, $record ) { $reply->DAVElement( $prop, 'supported-privilege-set', privileges( $request->SupportedPrivileges(), 'supported-privilege') ); } + if ( isset($prop_list['DAV::supported-method-set']) ) { + $reply->DAVElement( $prop, 'supported-method-set', $request->BuildSupportedMethods() ); + } + if ( isset($prop_list['DAV::supported-report-set']) ) { + $reply->DAVElement( $prop, 'supported-report-set', $request->BuildSupportedReports() ); + } + + }