diff options
author | Bart Visscher <bartv@thisnet.nl> | 2012-07-25 23:08:53 +0200 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2012-07-25 23:09:03 +0200 |
commit | 783d67be6285d730ab7f365e3643bde0c116611a (patch) | |
tree | 54b817b28ae18d9c55dabf1390f6ca69a0cc5b03 /lib/connector/sabre/directory.php | |
parent | 381e493a8c777a4e5e95fd72c6a7ed8114c3c978 (diff) | |
download | nextcloud-server-783d67be6285d730ab7f365e3643bde0c116611a.tar.gz nextcloud-server-783d67be6285d730ab7f365e3643bde0c116611a.zip |
Create uniqid ETag for directories
Diffstat (limited to 'lib/connector/sabre/directory.php')
-rw-r--r-- | lib/connector/sabre/directory.php | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/lib/connector/sabre/directory.php b/lib/connector/sabre/directory.php index 7003a920277..7f8434c7151 100644 --- a/lib/connector/sabre/directory.php +++ b/lib/connector/sabre/directory.php @@ -170,5 +170,25 @@ class OC_Connector_Sabre_Directory extends OC_Connector_Sabre_Node implements Sa } + /** + * Returns a list of properties for this nodes.; + * + * The properties list is a list of propertynames the client requested, + * encoded as xmlnamespace#tagName, for example: + * http://www.example.org/namespace#author + * If the array is empty, all properties should be returned + * + * @param array $properties + * @return void + */ + public function getProperties($properties) { + $props = parent::getProperties($properties); + if (in_array(self::GETETAG_PROPERTYNAME, $properties) + && !isset($props[self::GETETAG_PROPERTYNAME])) { + $props[self::GETETAG_PROPERTYNAME] = + OC_Connector_Sabre_Node::getETagPropertyForPath($this->path); + } + return $props; + } } |