diff options
author | Maxence Lange <maxence@pontapreta.net> | 2017-02-23 05:03:11 +0300 |
---|---|---|
committer | Maxence Lange <maxence@pontapreta.net> | 2017-02-23 05:03:11 +0300 |
commit | 542e9aea94aace94d1132b14aa82fb758a9bd433 (patch) | |
tree | 3dc9c2643561dbfee4ab114813dd99632260901b /lib/Api | |
parent | 7b2f7303217eabd0d0f10a5c713ec62546d6af70 (diff) |
Share Provider + api
Diffstat (limited to 'lib/Api')
-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 |