Loading...
Searching...
No Matches
caldav-REPORT-pps-set.php
<?php
function property_response( &$xmldoc, $property ) {
$prop = new XMLElement( 'prop' );
$xmldoc->NSElement($prop, $property );
return new XMLElement( 'principal-search-property', $prop );
}
$principal_search_property_set = array(
'DAV::displayname',
'urn:ietf:params:xml:ns:caldav:calendar-home-set',
'urn:ietf:params:xml:ns:caldav:calendar-user-address-set'
);
if ( $request->depth > 0 ) {
$request->DoResponse( 400, 'The principal-search-property-set REPORT is only defined for Depth "0".' );
}
$responses = array();
foreach( $principal_search_property_set AS $k => $tag ) {
$responses[] = property_response( $reply, $tag );
}
$report = new XMLElement( 'principal-search-property-set', $responses, $reply->GetXmlNsArray() );
$request->XMLResponse( 207, $report );