summaryrefslogtreecommitdiffstats
path: root/lib/private/share20
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@owncloud.com>2016-03-11 08:51:07 +0100
committerRoeland Jago Douma <rullzer@owncloud.com>2016-03-11 08:51:07 +0100
commitb8ce9c5554463d0ae55e8f981e3d77eb8101315a (patch)
treeb3d83b6d1a08d26e20577069f3b2350b07e4a4ff /lib/private/share20
parent1ed831564e47a35ce41f78cc6a67a95a06ad5f50 (diff)
downloadnextcloud-server-b8ce9c5554463d0ae55e8f981e3d77eb8101315a.tar.gz
nextcloud-server-b8ce9c5554463d0ae55e8f981e3d77eb8101315a.zip
Use more generic node instead of File/Folder
The phpdoc for the sharing functions was very restrictive. As a consequence passing node object (for example from the OCS Share API where we don't really care if it is a file or folder), would actually be invalid. With this loser restriction the interfaces become more generic.
Diffstat (limited to 'lib/private/share20')
-rw-r--r--lib/private/share20/defaultshareprovider.php10
-rw-r--r--lib/private/share20/manager.php10
2 files changed, 2 insertions, 18 deletions
diff --git a/lib/private/share20/defaultshareprovider.php b/lib/private/share20/defaultshareprovider.php
index 43dc6090a35..b91ac24d44f 100644
--- a/lib/private/share20/defaultshareprovider.php
+++ b/lib/private/share20/defaultshareprovider.php
@@ -454,15 +454,7 @@ class DefaultShareProvider implements IShareProvider {
}
/**
- * Get all shares by the given user. Sharetype and path can be used to filter.
- *
- * @param string $userId
- * @param int $shareType
- * @param \OCP\Files\File|\OCP\Files\Folder $node
- * @param bool $reshares Also get the shares where $user is the owner instead of just the shares where $user is the initiator
- * @param int $limit The maximum number of shares to be returned, -1 for all shares
- * @param int $offset
- * @return Share[]
+ * @inheritdoc
*/
public function getSharesBy($userId, $shareType, $node, $reshares, $limit, $offset) {
$qb = $this->dbConn->getQueryBuilder();
diff --git a/lib/private/share20/manager.php b/lib/private/share20/manager.php
index 6f370eea424..047d9d3e8f5 100644
--- a/lib/private/share20/manager.php
+++ b/lib/private/share20/manager.php
@@ -834,15 +834,7 @@ class Manager implements IManager {
}
/**
- * Get shares shared by (initiated) by the provided user.
- *
- * @param string $userId
- * @param int $shareType
- * @param \OCP\Files\File|\OCP\Files\Folder $path
- * @param bool $reshares
- * @param int $limit The maximum number of returned results, -1 for all results
- * @param int $offset
- * @return \OCP\Share\IShare[]
+ * @inheritdoc
*/
public function getSharesBy($userId, $shareType, $path = null, $reshares = false, $limit = 50, $offset = 0) {
if ($path !== null &&