ShareApiController   A
last analyzed

Complexity

Total Complexity 5

Size/Duplication

Total Lines 38
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 5
lcom 0
cbo 0
dl 0
loc 38
rs 10
c 0
b 0
f 0

5 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A getShares() 0 3 1
A share() 0 3 1
A unshare() 0 3 1
A setpermissions() 0 3 1
1
<?php
2
/**
3
 * ownCloud - nextnote
4
 *
5
 * This file is licensed under the Affero General Public License version 3 or
6
 * later. See the COPYING file.
7
 *
8
 * @author Ben Curtis <[email protected]>
9
 * @copyright Ben Curtis 2015
10
 */
11
12
namespace OCA\NextNote\Controller;
13
14
use \OCP\AppFramework\ApiController;
15
use \OCP\IRequest;
16
17
18
class ShareApiController extends ApiController {
19
20
	public function __construct($appName, IRequest $request) {
21
		parent::__construct($appName, $request);
22
	}
23
24
	/**
25
	 * @NoAdminRequired
26
	 * @NoCSRFRequired
27
	 */
28
	public function getShares($noteid, $shared_with_me, $reshares) {
29
30
	}
31
32
	/**
33
	 * @NoAdminRequired
34
	 * @NoCSRFRequired
35
	 */
36
	public function share($noteid, $shareType, $shareWith, $publicUpload, $password, $permissions) {
37
38
	}
39
40
	/**
41
	 * @NoAdminRequired
42
	 * @NoCSRFRequired
43
	 */
44
	public function unshare($itemSource, $shareType, $shareWith) {
45
46
	}
47
48
	/**
49
	 * @NoAdminRequired
50
	 * @NoCSRFRequired
51
	 */
52
	public function setpermissions($itemSource, $shareType, $shareWith, $permissions) {
53
54
	}
55
}