diff options
Diffstat (limited to 'lib/Api/Sharees.php')
-rw-r--r-- | lib/Api/Sharees.php | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/lib/Api/Sharees.php b/lib/Api/Sharees.php new file mode 100644 index 00000000..478400be --- /dev/null +++ b/lib/Api/Sharees.php @@ -0,0 +1,56 @@ +<?php +/** + * Circles - bring cloud-users closer + * + * 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 OCP\Share; + + +class Sharees { + + + static protected function getContainer() { + $app = new \OCA\Circles\AppInfo\Application(); + + return $app->getContainer(); + } + + public static function search($search, $limit, $offset) { + $c = self::getContainer(); + + $result['circles'][] = [ + 'label' => 'labell !', + 'value' => [ + 'shareType' => Share::SHARE_TYPE_CIRCLE, + 'shareWith' => 10 + ], + ]; + + return $result; + } + + +}
\ No newline at end of file |