aboutsummaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/DAV/Sharing
diff options
context:
space:
mode:
Diffstat (limited to 'apps/dav/lib/DAV/Sharing')
-rw-r--r--apps/dav/lib/DAV/Sharing/Backend.php6
-rw-r--r--apps/dav/lib/DAV/Sharing/IShareable.php4
-rw-r--r--apps/dav/lib/DAV/Sharing/Plugin.php14
-rw-r--r--apps/dav/lib/DAV/Sharing/Xml/Invite.php6
-rw-r--r--apps/dav/lib/DAV/Sharing/Xml/ShareRequest.php4
5 files changed, 17 insertions, 17 deletions
diff --git a/apps/dav/lib/DAV/Sharing/Backend.php b/apps/dav/lib/DAV/Sharing/Backend.php
index ae69e33387c..6c88fa4d15e 100644
--- a/apps/dav/lib/DAV/Sharing/Backend.php
+++ b/apps/dav/lib/DAV/Sharing/Backend.php
@@ -45,9 +45,9 @@ class Backend {
/** @var string */
private $resourceType;
- const ACCESS_OWNER = 1;
- const ACCESS_READ_WRITE = 2;
- const ACCESS_READ = 3;
+ public const ACCESS_OWNER = 1;
+ public const ACCESS_READ_WRITE = 2;
+ public const ACCESS_READ = 3;
/**
* @param IDBConnection $db
diff --git a/apps/dav/lib/DAV/Sharing/IShareable.php b/apps/dav/lib/DAV/Sharing/IShareable.php
index 1293721040a..ffe9e3691dc 100644
--- a/apps/dav/lib/DAV/Sharing/IShareable.php
+++ b/apps/dav/lib/DAV/Sharing/IShareable.php
@@ -49,7 +49,7 @@ interface IShareable extends INode {
* @param array $remove
* @return void
*/
- function updateShares(array $add, array $remove);
+ public function updateShares(array $add, array $remove);
/**
* Returns the list of people whom this resource is shared with.
@@ -63,7 +63,7 @@ interface IShareable extends INode {
*
* @return array
*/
- function getShares();
+ public function getShares();
/**
* @return int
diff --git a/apps/dav/lib/DAV/Sharing/Plugin.php b/apps/dav/lib/DAV/Sharing/Plugin.php
index 67eed9c9b4a..e33d879fa0e 100644
--- a/apps/dav/lib/DAV/Sharing/Plugin.php
+++ b/apps/dav/lib/DAV/Sharing/Plugin.php
@@ -37,8 +37,8 @@ use Sabre\HTTP\RequestInterface;
use Sabre\HTTP\ResponseInterface;
class Plugin extends ServerPlugin {
- const NS_OWNCLOUD = 'http://owncloud.org/ns';
- const NS_NEXTCLOUD = 'http://nextcloud.com/ns';
+ public const NS_OWNCLOUD = 'http://owncloud.org/ns';
+ public const NS_NEXTCLOUD = 'http://nextcloud.com/ns';
/** @var Auth */
private $auth;
@@ -72,7 +72,7 @@ class Plugin extends ServerPlugin {
*
* @return string[]
*/
- function getFeatures() {
+ public function getFeatures() {
return ['oc-resource-sharing'];
}
@@ -84,7 +84,7 @@ class Plugin extends ServerPlugin {
*
* @return string
*/
- function getPluginName() {
+ public function getPluginName() {
return 'oc-resource-sharing';
}
@@ -99,7 +99,7 @@ class Plugin extends ServerPlugin {
* @param Server $server
* @return void
*/
- function initialize(Server $server) {
+ public function initialize(Server $server) {
$this->server = $server;
$this->server->xml->elementMap['{' . Plugin::NS_OWNCLOUD . '}share'] = ShareRequest::class;
$this->server->xml->elementMap['{' . Plugin::NS_OWNCLOUD . '}invite'] = Invite::class;
@@ -115,7 +115,7 @@ class Plugin extends ServerPlugin {
* @param ResponseInterface $response
* @return null|false
*/
- function httpPost(RequestInterface $request, ResponseInterface $response) {
+ public function httpPost(RequestInterface $request, ResponseInterface $response) {
$path = $request->getPath();
// Only handling xml
@@ -188,7 +188,7 @@ class Plugin extends ServerPlugin {
* @param INode $node
* @return void
*/
- function propFind(PropFind $propFind, INode $node) {
+ public function propFind(PropFind $propFind, INode $node) {
if ($node instanceof IShareable) {
$propFind->handle('{' . Plugin::NS_OWNCLOUD . '}invite', function () use ($node) {
return new Invite(
diff --git a/apps/dav/lib/DAV/Sharing/Xml/Invite.php b/apps/dav/lib/DAV/Sharing/Xml/Invite.php
index 68aab171ab7..315ede2ce9c 100644
--- a/apps/dav/lib/DAV/Sharing/Xml/Invite.php
+++ b/apps/dav/lib/DAV/Sharing/Xml/Invite.php
@@ -84,7 +84,7 @@ class Invite implements XmlSerializable {
*
* @param array $users
*/
- function __construct(array $users, array $organizer = null) {
+ public function __construct(array $users, array $organizer = null) {
$this->users = $users;
$this->organizer = $organizer;
}
@@ -94,7 +94,7 @@ class Invite implements XmlSerializable {
*
* @return array
*/
- function getValue() {
+ public function getValue() {
return $this->users;
}
@@ -117,7 +117,7 @@ class Invite implements XmlSerializable {
* @param Writer $writer
* @return void
*/
- function xmlSerialize(Writer $writer) {
+ public function xmlSerialize(Writer $writer) {
$cs = '{' . Plugin::NS_OWNCLOUD . '}';
if (!is_null($this->organizer)) {
diff --git a/apps/dav/lib/DAV/Sharing/Xml/ShareRequest.php b/apps/dav/lib/DAV/Sharing/Xml/ShareRequest.php
index d76e65aa232..c973908f5a8 100644
--- a/apps/dav/lib/DAV/Sharing/Xml/ShareRequest.php
+++ b/apps/dav/lib/DAV/Sharing/Xml/ShareRequest.php
@@ -38,12 +38,12 @@ class ShareRequest implements XmlDeserializable {
* @param array $set
* @param array $remove
*/
- function __construct(array $set, array $remove) {
+ public function __construct(array $set, array $remove) {
$this->set = $set;
$this->remove = $remove;
}
- static function xmlDeserialize(Reader $reader) {
+ public static function xmlDeserialize(Reader $reader) {
$elements = $reader->parseInnerTree([
'{' . Plugin::NS_OWNCLOUD. '}set' => 'Sabre\\Xml\\Element\\KeyValue',
'{' . Plugin::NS_OWNCLOUD . '}remove' => 'Sabre\\Xml\\Element\\KeyValue',