DAViCal
caldav-OPTIONS.php
1 <?php
11 dbg_error_log("OPTIONS", "method handler");
12 
13 include_once('DAVResource.php');
14 $resource = new DAVResource($request->path);
15 
21 $resource->NeedPrivilege( array('DAV::read','DAV::read-current-user-privilege-set'), true );
22 
23 if ( !$resource->Exists() ) {
24  $request->DoResponse( 404, translate("No collection found at that location.") );
25 }
26 
27 $allowed = implode( ', ', array_keys($resource->FetchSupportedMethods()) );
28 header( 'Allow: '.$allowed);
29 
30 $request->DoResponse( 200, "" );
31 
DAVResource
Definition: DAVResource.php:24