From 9d23250593fc92c84db204f10283cd0c78cbc911 Mon Sep 17 00:00:00 2001 From: Andrew McMillan Date: Mon, 2 Nov 2009 22:21:02 +1300 Subject: [PATCH] Add a dav_name() accessor for forward compatibility. --- inc/CalDAVRequest.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/inc/CalDAVRequest.php b/inc/CalDAVRequest.php index bd4b6378..6951dd6e 100644 --- a/inc/CalDAVRequest.php +++ b/inc/CalDAVRequest.php @@ -653,6 +653,15 @@ EOSQL; } + /** + * Returns the dav_name of the resource in our internal namespace + */ + function dav_name() { + if ( isset($this->path) ) return $this->path; + return null; + } + + /** * Returns the name for this depth: 0, 1, infinity */