mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-11-29 08:56:03 +00:00
Scheduling extentions working with iCal 4
This commit is contained in:
1 parent
519edce1dd
commit
3efbddd9bd
2 files changed
+153
-7
No files matched your search
@@ -13,6 +13,7 @@ dbg_error_log("POST", "method handler");
|
||||
require_once("XMLDocument.php");
|
||||
require_once("iCalendar.php");
|
||||
include_once("RRule.php");
|
||||
include_once('caldav-PUT-functions.php');
|
||||
|
||||
if ( ! $request->AllowedTo("CALDAV:schedule-send-freebusy")
|
||||
&& ! $request->AllowedTo("CALDAV:schedule-send-invite")
|
||||
@@ -216,10 +217,17 @@ switch ( $method ) {
|
||||
dbg_error_log('POST', 'Handling iTIP "REQUEST" method with "%s" component.', $method, $first->GetType() );
|
||||
if ( $first->GetType() == 'VFREEBUSY' )
|
||||
handle_freebusy_request( $first );
|
||||
elseif ( $first->GetType() == 'VEVENT' ) {
|
||||
handle_schedule_request( $ical );
|
||||
}
|
||||
else {
|
||||
dbg_error_log('POST', 'Ignoring iTIP "REQUEST" with "%s" component.', $first->GetType() );
|
||||
}
|
||||
break;
|
||||
case 'REPLY':
|
||||
dbg_error_log('POST', 'Handling iTIP "REPLY" with "%s" component.', $first->GetType() );
|
||||
handle_schedule_reply ( $ical );
|
||||
break;
|
||||
|
||||
case 'CANCEL':
|
||||
dbg_error_log("POST", "Handling iTIP 'CANCEL' method.", $method );
|
||||
|
||||
Reference in new issue
Block a user