Added MatchResource() method for matching by resource_id.

This commit is contained in:
Andrew McMillan 2010-03-14 00:20:02 +13:00
parent a6768b4fdb
commit a1d284eb56

View File

@ -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);
}
}