mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-31 03:34:18 +00:00
Useful element for building regex matching a path + depth.
This commit is contained in:
parent
f72d204f4e
commit
77117734e7
@ -220,6 +220,16 @@ class CalDAVRequest
|
|||||||
return $this->depth;
|
return $this->depth;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the tail of a Regex appropriate for this Depth, when appended to
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
function DepthRegexTail( ) {
|
||||||
|
if ( $this->IsInfiniteDepth() ) return '';
|
||||||
|
if ( $this->depth == 0 ) return '$';
|
||||||
|
return '[^/]*/?$';
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the locked row, either from the cache or from the database
|
* Returns the locked row, either from the cache or from the database
|
||||||
*
|
*
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user