mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-08-29 18:26:05 +00:00
Add an IsCollection() test to the request.
This commit is contained in:
parent
22ffc3c36b
commit
77066997af
@ -145,6 +145,16 @@ class CalDAVRequest
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns true if the URL referenced by this request points at a collection.
|
||||
*/
|
||||
function IsCollection( ) {
|
||||
if ( !isset($this->_is_collection) ) {
|
||||
$this->_is_collection = preg_match( '#/$#', $this->path );
|
||||
}
|
||||
return $this->_is_collection;
|
||||
}
|
||||
|
||||
/**
|
||||
* Are we allowed to do the requested activity
|
||||
*
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user