summaryrefslogtreecommitdiffstats
path: root/lib/private/connector/sabre/server.php
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2014-12-15 17:49:24 +0100
committerVincent Petry <pvince81@owncloud.com>2014-12-17 16:50:35 +0100
commit0b3f0716fc8e278a5727885548bfa406004263dc (patch)
treeb0413ceeaa79e69c9a61655baac3bab4278a507d /lib/private/connector/sabre/server.php
parentbe3d4fd303569a99554dbc6c62ce8992a45c51ad (diff)
downloadnextcloud-server-0b3f0716fc8e278a5727885548bfa406004263dc.tar.gz
nextcloud-server-0b3f0716fc8e278a5727885548bfa406004263dc.zip
Returns and update tags through WebDAV PROPFIND and PROPPATCH
Added oc:tags and oc:favorites in PROPFIND response. It is possible to update them with PROPPATCH. These properties are optional which means they need to be requested explicitly
Diffstat (limited to 'lib/private/connector/sabre/server.php')
-rw-r--r--lib/private/connector/sabre/server.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/private/connector/sabre/server.php b/lib/private/connector/sabre/server.php
index 137082eea67..a836af2a0b8 100644
--- a/lib/private/connector/sabre/server.php
+++ b/lib/private/connector/sabre/server.php
@@ -144,6 +144,13 @@ class OC_Connector_Sabre_Server extends Sabre\DAV\Server {
$path = rtrim($path,'/');
+ // This event allows people to intercept these requests early on in the
+ // process.
+ //
+ // We're not doing anything with the result, but this can be helpful to
+ // pre-fetch certain expensive live properties.
+ $this->broadCastEvent('beforeGetPropertiesForPath', array($path, $propertyNames, $depth));
+
$returnPropertyList = array();
$parentNode = $this->tree->getNodeForPath($path);