summaryrefslogtreecommitdiffstats
path: root/lib/public/share.php
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2014-04-08 14:42:15 +0200
committerBjoern Schiessle <schiessle@owncloud.com>2014-04-23 12:54:24 +0200
commitc4e0fb75a4e8c9cb133ce79b6a737b2ba7b161df (patch)
tree10e13eb0703968bf9e07d64ec34e87251ecb2509 /lib/public/share.php
parent6d87dacad4e7b0d5ef92b92d892a457bdcbd207e (diff)
downloadnextcloud-server-c4e0fb75a4e8c9cb133ce79b6a737b2ba7b161df.tar.gz
nextcloud-server-c4e0fb75a4e8c9cb133ce79b6a737b2ba7b161df.zip
add api to get shares from a specific user
Diffstat (limited to 'lib/public/share.php')
-rw-r--r--lib/public/share.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/public/share.php b/lib/public/share.php
index c694314ad08..230a517b5ee 100644
--- a/lib/public/share.php
+++ b/lib/public/share.php
@@ -91,6 +91,22 @@ class Share extends \OC\Share\Constants {
}
/**
+ * Get the items of item type shared with a user
+ * @param string Item type
+ * @param sting user id for which user we want the shares
+ * @param int Format (optional) Format type must be defined by the backend
+ * @param mixed Parameters (optional)
+ * @param int Number of items to return (optional) Returns all by default
+ * @param bool include collections (optional)
+ * @return Return depends on format
+ */
+ public static function getItemsSharedWithUser($itemType, $user, $format = self::FORMAT_NONE,
+ $parameters = null, $limit = -1, $includeCollections = false) {
+
+ return \OC\Share\Share::getItemsSharedWithUser($itemType, $user, $format, $parameters, $limit, $includeCollections);
+ }
+
+ /**
* Get the item of item type shared with the current user
* @param string $itemType
* @param string $itemTarget