1 | <?php |
||
33 | class OcmController extends Controller { |
||
34 | const API_VERSION = '1.0-proposal1'; |
||
35 | |||
36 | protected $urlGenerator; |
||
37 | |||
38 | public function __construct($appName, |
||
45 | |||
46 | /** |
||
47 | * @NoCSRFRequired |
||
48 | * @PublicPage |
||
49 | * |
||
50 | * EndPoint discovery |
||
51 | * Responds to /ocm-provider/ requests |
||
52 | * |
||
53 | * @return array |
||
54 | */ |
||
55 | public function discovery() { |
||
68 | |||
69 | /** |
||
70 | * @NoCSRFRequired |
||
71 | * @PublicPage |
||
72 | * |
||
73 | * |
||
74 | * |
||
75 | * @param string $shareWith identifier of the user or group to share the resource with |
||
76 | * @param string $name name of the shared resource |
||
77 | * @param string $description share description (optional) |
||
78 | * @param string $providerId Identifier of the resource at the provider side |
||
79 | * @param string $owner identifier of the user that owns the resource |
||
80 | * @param string $ownerDisplayName display name of the owner |
||
81 | * @param string $sender Provider specific identifier of the user that wants to share the resource |
||
82 | * @param string $senderDisplayName Display name of the user that wants to share the resource |
||
83 | * @param string $shareType Share type (user or group share) |
||
84 | * @param string $resourceType only 'file' is supported atm |
||
85 | * @param array $protocol |
||
86 | * [ |
||
87 | * 'name' => (string) protocol name. Only 'webdav' is supported atm, |
||
88 | * 'options' => [ |
||
89 | * protocol specific options |
||
90 | * only `webdav` options are supported atm |
||
91 | * e.g. `uri`, `access_token`, `password`, `permissions` etc. |
||
92 | * |
||
93 | * For backward compatibility the webdav protocol will use |
||
94 | * the 'sharedSecret" as username and password |
||
95 | * ] |
||
96 | * |
||
97 | */ |
||
98 | public function createShare($shareWith, |
||
113 | |||
114 | /** |
||
115 | * @param string $notificationType notification type (SHARE_REMOVED, etc) |
||
116 | * @param string $resourceType only 'file' is supported atm |
||
117 | * @param string $providerId Identifier of the resource at the provider side |
||
118 | * @param array $notification |
||
119 | * [ |
||
120 | * optional additional parameters, depending on the notification and the resource type |
||
121 | * |
||
122 | * ] |
||
123 | */ |
||
124 | public function processNotification($notificationType, |
||
131 | |||
132 | protected function getProtocols() { |
||
137 | |||
138 | } |
||
139 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.