Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/circles.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Api/v1/Circles.php')
-rw-r--r--lib/Api/v1/Circles.php27
1 files changed, 27 insertions, 0 deletions
diff --git a/lib/Api/v1/Circles.php b/lib/Api/v1/Circles.php
index d43c068e..dced9d7f 100644
--- a/lib/Api/v1/Circles.php
+++ b/lib/Api/v1/Circles.php
@@ -6,6 +6,9 @@
* later. See the COPYING file.
*
* @author Maxence Lange <maxence@pontapreta.net>
+ * @author Vinicius Cubas Brand <vinicius@eita.org.br>
+ * @author Daniel Tygel <dtygel@eita.org.br>
+ *
* @copyright 2017
* @license GNU AGPL version 3 or any later version
*
@@ -445,4 +448,28 @@ class Circles {
)
];
}
+
+ /**
+ * Get a list of objects which are shred with $circleUniqueId.
+ *
+ * @param string|array $tagIds Tag id or array of tag ids.
+ * @param string $objectType object type
+ * @param int $limit Count of object ids you want to get
+ * @param string $offset The last object id you already received
+ *
+ * @return string[] array of object ids or empty array if none found
+ *
+ * @throws \OCP\SystemTag\TagNotFoundException if at least one of the
+ * given tags does not exist
+ * @throws \InvalidArgumentException When a limit is specified together with
+ * multiple tag ids
+ *
+ * @since 9.0.0
+ */
+ public static function getObjectIdsForCircles($circleUniqueIds) {
+ $c = self::getContainer();
+
+ return $c->query(CirclesService::class)
+ ->getObjectIdsForCircles($circleUniqueIds);
+ }
} \ No newline at end of file