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>2017-08-25 15:45:33 +0300
committerMaxence Lange <maxence@artificial-owl.com>2017-08-25 15:45:33 +0300
commit6ab97c36df7d28e70b186601065c6994947c5e0f (patch)
treec5a158881805e88512d2f8390e8c435f47406c28 /lib/Api
parenta3492eb382d018cff3a7374823cb90022ab46ced (diff)
api check
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'lib/Api')
-rw-r--r--lib/Api/v1/Circles.php34
1 files changed, 18 insertions, 16 deletions
diff --git a/lib/Api/v1/Circles.php b/lib/Api/v1/Circles.php
index e444b30e..65034a21 100644
--- a/lib/Api/v1/Circles.php
+++ b/lib/Api/v1/Circles.php
@@ -240,21 +240,22 @@ class Circles {
/**
- * Circles::addLocalMember();
+ * Circles::addMember();
*
* This function will add a user as member of the circle. Current user need at least to be
* Moderator.
*
* @param string $circleUniqueId
- * @param string $userId
+ * @param string $ident
+ * @param int $type
*
* @return Member[]
*/
- public static function addLocalMember($circleUniqueId, $userId) {
+ public static function addMember($circleUniqueId, $ident, $type) {
$c = self::getContainer();
return $c->query('MembersService')
- ->addLocalMember($circleUniqueId, $userId);
+ ->addMember($circleUniqueId, $ident, $type);
}
@@ -265,16 +266,16 @@ class Circles {
* to be Member.
*
* @param string $circleUniqueId
- * @param string $userId
- * @param int $userType
+ * @param string $ident
+ * @param int $type
*
* @return Member
*/
- public static function getMember($circleUniqueId, $userId, $userType) {
+ public static function getMember($circleUniqueId, $ident, $type) {
$c = self::getContainer();
return $c->query('MembersService')
- ->getMember($circleUniqueId, $userId, $userType);
+ ->getMember($circleUniqueId, $ident, $type);
}
@@ -285,16 +286,16 @@ class Circles {
* Moderator and have a higher level that the targeted member.
*
* @param string $circleUniqueId
- * @param string $userId
- * @param int $userType
+ * @param string $ident
+ * @param int $type
*
* @return Member[]
*/
- public static function removeMember($circleUniqueId, $userId, $userType) {
+ public static function removeMember($circleUniqueId, $ident, $type) {
$c = self::getContainer();
return $c->query('MembersService')
- ->removeMember($circleUniqueId, $userId, $userType);
+ ->removeMember($circleUniqueId, $ident, $type);
}
@@ -307,17 +308,17 @@ class Circles {
* current user).
*
* @param string $circleUniqueId
- * @param string $userId
- * @param int $userType
+ * @param string $ident
+ * @param int $type
* @param int $level
*
* @return Member[]
*/
- public static function levelMember($circleUniqueId, $userId, $userType, $level) {
+ public static function levelMember($circleUniqueId, $ident, $type, $level) {
$c = self::getContainer();
return $c->query('MembersService')
- ->levelMember($circleUniqueId, $userId, $userType, $level);
+ ->levelMember($circleUniqueId, $ident, $type, $level);
}
@@ -355,6 +356,7 @@ class Circles {
* Initiate a link procedure. Current user must be at least Admin of the circle.
* circleId is the local circle and remote is the target for the link.
* Remote format is: <circle_name>@<remote_host> when remote_host must be a valid HTTPS address.
+ * Remote format is: <circle_name>@<remote_host> when remote_host must be a valid HTTPS address.
*
* @param string $circleUniqueId
* @param string $remote