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
path: root/lib/Api
diff options
context:
space:
mode:
authorMaxence Lange <maxence@artificial-owl.com>2019-03-01 20:59:52 +0300
committerMaxence Lange <maxence@artificial-owl.com>2019-03-01 20:59:52 +0300
commit8b7402d609222a197dc0cf92ef37f2c1f4689629 (patch)
tree3becd4db530b130271cf7dafd319e2a5d735f1f6 /lib/Api
parentf7b945f65c50bfb23acf9d1f06c3da8323278ee5 (diff)
adding a 2nd parameter to joinedCircles()
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'lib/Api')
-rw-r--r--lib/Api/v1/Circles.php11
1 files changed, 7 insertions, 4 deletions
diff --git a/lib/Api/v1/Circles.php b/lib/Api/v1/Circles.php
index 48b2bd86..e5df11ed 100644
--- a/lib/Api/v1/Circles.php
+++ b/lib/Api/v1/Circles.php
@@ -173,10 +173,12 @@ class Circles {
* @param int $level
* @param string $userId
*
+ * @param bool $forceAll
+ *
* @return Circle[]
* @throws QueryException
*/
- public static function listCircles($type, $name = '', $level = 0, $userId = '') {
+ public static function listCircles($type, $name = '', $level = 0, $userId = '', $forceAll = false) {
$c = self::getContainer();
if ($userId === '') {
@@ -186,7 +188,7 @@ class Circles {
}
return $c->query(CirclesService::class)
- ->listCircles($userId, $type, $name, $level);
+ ->listCircles($userId, $type, $name, $level, $forceAll);
}
@@ -196,12 +198,13 @@ class Circles {
* Return all the circle the current user is a member.
*
* @param string $userId
+ * @param bool $forceAll
*
* @return Circle[]
* @throws QueryException
*/
- public static function joinedCircles($userId = '') {
- return self::listCircles(Circle::CIRCLES_ALL, '', Member::LEVEL_MEMBER, $userId);
+ public static function joinedCircles($userId = '', $forceAll = false) {
+ return self::listCircles(Circle::CIRCLES_ALL, '', Member::LEVEL_MEMBER, $userId, $forceAll);
}