diff options
author | Maxence Lange <maxence@nextcloud.com> | 2017-06-07 01:28:15 +0300 |
---|---|---|
committer | Maxence Lange <maxence@nextcloud.com> | 2017-06-07 01:28:15 +0300 |
commit | 51fdcb08e971572a11d7ea28cb83a6759b2d6e74 (patch) | |
tree | 5563f0c03ad75d0f492f6415f33bb7949433ce4a | |
parent | 3ebdb6ed47653f51160df85931172bc48862c346 (diff) |
compat 12.0.0
Signed-off-by: Maxence Lange <maxence@nextcloud.com>
-rw-r--r-- | lib/Api/Circles.php | 55 | ||||
-rw-r--r-- | lib/Api/v1/Circles.php | 3 |
2 files changed, 58 insertions, 0 deletions
diff --git a/lib/Api/Circles.php b/lib/Api/Circles.php new file mode 100644 index 00000000..79bbb889 --- /dev/null +++ b/lib/Api/Circles.php @@ -0,0 +1,55 @@ +<?php +/** + * Circles - Bring cloud-users closer together. + * + * This file is licensed under the Affero General Public License version 3 or + * later. See the COPYING file. + * + * @author Maxence Lange <maxence@pontapreta.net> + * @copyright 2017 + * @license GNU AGPL version 3 or any later version + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + */ + +namespace OCA\Circles\Api; + + +use OCA\Circles\AppInfo\Application; +use OCA\Circles\Model\Circle; +use OCA\Circles\Model\FederatedLink; +use OCA\Circles\Model\Member; +use OCA\Circles\Model\SharingFrame; + +class Circles { + + /** + * Circles::detailsCircle(); + * + * Returns details on the circle. If the current user is a member, the members list will be + * return as well. + * @deprecated 12.0.1 + * @param $circleId + * + * @return Circle + */ + public static function detailsCircle($circleId) { + $app = new Application(); + $c = $app->getContainer(); + + return $c->query('CirclesService') + ->detailsCircle($circleId); + } +}
\ No newline at end of file diff --git a/lib/Api/v1/Circles.php b/lib/Api/v1/Circles.php index a420c502..1081f7a4 100644 --- a/lib/Api/v1/Circles.php +++ b/lib/Api/v1/Circles.php @@ -142,6 +142,9 @@ class Circles { /** * Circles::detailsCircle(); * + * WARNING - This function is called by the core - WARNING + * Do not change it + * * Returns details on the circle. If the current user is a member, the members list will be * return as well. * |