diff options
Diffstat (limited to 'lib/Api')
-rw-r--r-- | lib/Api/v1/Circles.php | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/lib/Api/v1/Circles.php b/lib/Api/v1/Circles.php index 60202849..3475de2d 100644 --- a/lib/Api/v1/Circles.php +++ b/lib/Api/v1/Circles.php @@ -384,6 +384,45 @@ class Circles { /** + * Circles::getSharesFromCircle(); + * + * This function will returns all item (array) shared to a specific circle identified by its Id, + * source and type. Limited to current user session. + * + * @param string $circleUniqueId + * + * @return mixed + */ + public static function getSharesFromCircle($circleUniqueId) { + $c = self::getContainer(); + + return $c->query(SharingFrameService::class) + ->getFrameFromCircle($circleUniqueId); + } + + + /** + * Circles::forceGetSharesFromCircle(); + * + * This function will returns all item (array) shared to a specific circle identified by its Id, + * source and type. + * + * @param string $circleUniqueId + * @param string $userId + * + * @return SharingFrame[] + */ + public static function forceGetSharesFromCircle($circleUniqueId, $userId = '') { + $c = self::getContainer(); + + return $c->query(SharingFrameService::class) + ->forceGetFrameFromCircle($circleUniqueId, $userId); + } + + + + + /** * Circles::linkCircle(); * * Initiate a link procedure. Current user must be at least Admin of the circle. |