From 51fdcb08e971572a11d7ea28cb83a6759b2d6e74 Mon Sep 17 00:00:00 2001 From: Maxence Lange Date: Tue, 6 Jun 2017 21:28:15 -0100 Subject: compat 12.0.0 Signed-off-by: Maxence Lange --- lib/Api/Circles.php | 55 ++++++++++++++++++++++++++++++++++++++++++++++++++ lib/Api/v1/Circles.php | 3 +++ 2 files changed, 58 insertions(+) create mode 100644 lib/Api/Circles.php (limited to 'lib/Api') 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 @@ + + * @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 . + * + */ + +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. * -- cgit v1.2.3