From a1d284eb5682e198988bec0eb6263e40073c0dce Mon Sep 17 00:00:00 2001 From: Andrew McMillan Date: Sun, 14 Mar 2010 00:20:02 +1300 Subject: [PATCH] Added MatchResource() method for matching by resource_id. --- inc/DAVTicket.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/inc/DAVTicket.php b/inc/DAVTicket.php index 171975a4..0112fb8f 100644 --- a/inc/DAVTicket.php +++ b/inc/DAVTicket.php @@ -125,4 +125,8 @@ class DAVTicket $length = strlen($this->dav_name); return (substr($test_path, 0, $length) == $this->dav_name); } + + function MatchesResource( $test_resource_id ) { + return ($test_resource_id == $this->target_collection_id || $test_resource_id == $this->target_resource_id); + } }