From e8c6aa2abfa3b5e353e571d5ea70bda2531217f8 Mon Sep 17 00:00:00 2001 From: Andrew McMillan Date: Thu, 18 Mar 2010 10:44:55 +1300 Subject: [PATCH] Add an extra resourcetype to a binding to indicate it's a binding. This is not in the spec, but makes things easier if you need to know whether this is a binding or not. You could also request a parent-set property and thus know this too, but we'll do this temporarily and decide if maybe it's a bad idea later. --- inc/DAVResource.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/inc/DAVResource.php b/inc/DAVResource.php index 4dee75c8..dafd7f27 100644 --- a/inc/DAVResource.php +++ b/inc/DAVResource.php @@ -1224,6 +1224,9 @@ EOQRY; if ( $v == '' ) continue; $reply->NSElement( $resourcetypes, $v ); } + if ( $this->_is_binding ) { + $reply->NSElement( $resourcetypes, 'http://xmlns.davical.org/davical:webdav-binding' ); + } break; case 'DAV::getlastmodified':