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.
This commit is contained in:
Andrew McMillan 2010-03-18 10:44:55 +13:00
parent 118df346de
commit e8c6aa2abf

View File

@ -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':