diff options
author | Vincent Petry <pvince81@owncloud.com> | 2014-12-15 17:49:24 +0100 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2014-12-17 16:50:35 +0100 |
commit | 0b3f0716fc8e278a5727885548bfa406004263dc (patch) | |
tree | b0413ceeaa79e69c9a61655baac3bab4278a507d /lib/private/connector/sabre/node.php | |
parent | be3d4fd303569a99554dbc6c62ce8992a45c51ad (diff) | |
download | nextcloud-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/node.php')
-rw-r--r-- | lib/private/connector/sabre/node.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/private/connector/sabre/node.php b/lib/private/connector/sabre/node.php index a22dc9c5fbe..3173ab8a30f 100644 --- a/lib/private/connector/sabre/node.php +++ b/lib/private/connector/sabre/node.php @@ -1,5 +1,7 @@ <?php + use Sabre\DAV\URLUtil; +use OC\Connector\Sabre\TagList; /** * ownCloud @@ -227,6 +229,15 @@ abstract class OC_Connector_Sabre_Node implements \Sabre\DAV\INode, \Sabre\DAV\I } /** + * Returns the cache's file id + * + * @return int + */ + public function getId() { + return $this->info->getId(); + } + + /** * @return string|null */ public function getFileId() { |