diff --git a/inc/CalDAVRequest.php b/inc/CalDAVRequest.php index 123432a0..2d152f09 100644 --- a/inc/CalDAVRequest.php +++ b/inc/CalDAVRequest.php @@ -682,6 +682,15 @@ EOSQL; } + /** + * Returns true if the URL referenced by this request points at a calendar collection. + */ + function IsCalendar( ) { + if ( !$this->IsCollection() ) return false; + return $this->collection->is_calendar; + } + + /** * Returns true if the URL referenced by this request points at a principal. */