summaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/Connector
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2020-04-10 16:54:27 +0200
committerChristoph Wurst <christoph@winzerhof-wurst.at>2020-04-10 16:54:27 +0200
commit28f8eb5dba60a75f7e22debbdc26f1d3164deb18 (patch)
tree5bb8a104ec6b5af821b81cf392c69167deca4c0a /apps/dav/lib/Connector
parent1584c9ae9c23d2a7915750ef9203cba0bcebf766 (diff)
downloadnextcloud-server-28f8eb5dba60a75f7e22debbdc26f1d3164deb18.tar.gz
nextcloud-server-28f8eb5dba60a75f7e22debbdc26f1d3164deb18.zip
Add visibility to all constants
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'apps/dav/lib/Connector')
-rw-r--r--apps/dav/lib/Connector/Sabre/Auth.php2
-rw-r--r--apps/dav/lib/Connector/Sabre/ChecksumList.php2
-rw-r--r--apps/dav/lib/Connector/Sabre/CommentPropertiesPlugin.php6
-rw-r--r--apps/dav/lib/Connector/Sabre/Exception/Forbidden.php2
-rw-r--r--apps/dav/lib/Connector/Sabre/Exception/InvalidPath.php2
-rw-r--r--apps/dav/lib/Connector/Sabre/Exception/PasswordLoginForbidden.php2
-rw-r--r--apps/dav/lib/Connector/Sabre/FilesPlugin.php44
-rw-r--r--apps/dav/lib/Connector/Sabre/FilesReportPlugin.php8
-rw-r--r--apps/dav/lib/Connector/Sabre/ShareTypeList.php2
-rw-r--r--apps/dav/lib/Connector/Sabre/ShareeList.php2
-rw-r--r--apps/dav/lib/Connector/Sabre/SharesPlugin.php8
-rw-r--r--apps/dav/lib/Connector/Sabre/TagList.php2
-rw-r--r--apps/dav/lib/Connector/Sabre/TagsPlugin.php8
13 files changed, 45 insertions, 45 deletions
diff --git a/apps/dav/lib/Connector/Sabre/Auth.php b/apps/dav/lib/Connector/Sabre/Auth.php
index ba33d3234b3..ad042cd96ce 100644
--- a/apps/dav/lib/Connector/Sabre/Auth.php
+++ b/apps/dav/lib/Connector/Sabre/Auth.php
@@ -50,7 +50,7 @@ use Sabre\HTTP\RequestInterface;
use Sabre\HTTP\ResponseInterface;
class Auth extends AbstractBasic {
- const DAV_AUTHENTICATED = 'AUTHENTICATED_TO_DAV_BACKEND';
+ public const DAV_AUTHENTICATED = 'AUTHENTICATED_TO_DAV_BACKEND';
/** @var ISession */
private $session;
diff --git a/apps/dav/lib/Connector/Sabre/ChecksumList.php b/apps/dav/lib/Connector/Sabre/ChecksumList.php
index 7c9204cbe75..d0b83cff1fa 100644
--- a/apps/dav/lib/Connector/Sabre/ChecksumList.php
+++ b/apps/dav/lib/Connector/Sabre/ChecksumList.php
@@ -32,7 +32,7 @@ use Sabre\Xml\XmlSerializable;
* checksum name.
*/
class ChecksumList implements XmlSerializable {
- const NS_OWNCLOUD = 'http://owncloud.org/ns';
+ public const NS_OWNCLOUD = 'http://owncloud.org/ns';
/** @var string[] of TYPE:CHECKSUM */
private $checksums;
diff --git a/apps/dav/lib/Connector/Sabre/CommentPropertiesPlugin.php b/apps/dav/lib/Connector/Sabre/CommentPropertiesPlugin.php
index 5ae8dcdb938..22e418ee561 100644
--- a/apps/dav/lib/Connector/Sabre/CommentPropertiesPlugin.php
+++ b/apps/dav/lib/Connector/Sabre/CommentPropertiesPlugin.php
@@ -32,9 +32,9 @@ use Sabre\DAV\PropFind;
use Sabre\DAV\ServerPlugin;
class CommentPropertiesPlugin extends ServerPlugin {
- const PROPERTY_NAME_HREF = '{http://owncloud.org/ns}comments-href';
- const PROPERTY_NAME_COUNT = '{http://owncloud.org/ns}comments-count';
- const PROPERTY_NAME_UNREAD = '{http://owncloud.org/ns}comments-unread';
+ public const PROPERTY_NAME_HREF = '{http://owncloud.org/ns}comments-href';
+ public const PROPERTY_NAME_COUNT = '{http://owncloud.org/ns}comments-count';
+ public const PROPERTY_NAME_UNREAD = '{http://owncloud.org/ns}comments-unread';
/** @var \Sabre\DAV\Server */
protected $server;
diff --git a/apps/dav/lib/Connector/Sabre/Exception/Forbidden.php b/apps/dav/lib/Connector/Sabre/Exception/Forbidden.php
index 46659737e87..a9c07a0369c 100644
--- a/apps/dav/lib/Connector/Sabre/Exception/Forbidden.php
+++ b/apps/dav/lib/Connector/Sabre/Exception/Forbidden.php
@@ -23,7 +23,7 @@
namespace OCA\DAV\Connector\Sabre\Exception;
class Forbidden extends \Sabre\DAV\Exception\Forbidden {
- const NS_OWNCLOUD = 'http://owncloud.org/ns';
+ public const NS_OWNCLOUD = 'http://owncloud.org/ns';
/**
* @var bool
diff --git a/apps/dav/lib/Connector/Sabre/Exception/InvalidPath.php b/apps/dav/lib/Connector/Sabre/Exception/InvalidPath.php
index 2871fd83e09..25fa3205b5c 100644
--- a/apps/dav/lib/Connector/Sabre/Exception/InvalidPath.php
+++ b/apps/dav/lib/Connector/Sabre/Exception/InvalidPath.php
@@ -26,7 +26,7 @@ namespace OCA\DAV\Connector\Sabre\Exception;
use Sabre\DAV\Exception;
class InvalidPath extends Exception {
- const NS_OWNCLOUD = 'http://owncloud.org/ns';
+ public const NS_OWNCLOUD = 'http://owncloud.org/ns';
/**
* @var bool
diff --git a/apps/dav/lib/Connector/Sabre/Exception/PasswordLoginForbidden.php b/apps/dav/lib/Connector/Sabre/Exception/PasswordLoginForbidden.php
index c3e417b20ad..aac9b735839 100644
--- a/apps/dav/lib/Connector/Sabre/Exception/PasswordLoginForbidden.php
+++ b/apps/dav/lib/Connector/Sabre/Exception/PasswordLoginForbidden.php
@@ -29,7 +29,7 @@ use Sabre\DAV\Exception\NotAuthenticated;
use Sabre\DAV\Server;
class PasswordLoginForbidden extends NotAuthenticated {
- const NS_OWNCLOUD = 'http://owncloud.org/ns';
+ public const NS_OWNCLOUD = 'http://owncloud.org/ns';
public function getHTTPCode() {
return 401;
diff --git a/apps/dav/lib/Connector/Sabre/FilesPlugin.php b/apps/dav/lib/Connector/Sabre/FilesPlugin.php
index e14fd691f45..076e5b6483b 100644
--- a/apps/dav/lib/Connector/Sabre/FilesPlugin.php
+++ b/apps/dav/lib/Connector/Sabre/FilesPlugin.php
@@ -54,28 +54,28 @@ use Sabre\HTTP\ResponseInterface;
class FilesPlugin extends ServerPlugin {
// namespace
- const NS_OWNCLOUD = 'http://owncloud.org/ns';
- const NS_NEXTCLOUD = 'http://nextcloud.org/ns';
- const FILEID_PROPERTYNAME = '{http://owncloud.org/ns}id';
- const INTERNAL_FILEID_PROPERTYNAME = '{http://owncloud.org/ns}fileid';
- const PERMISSIONS_PROPERTYNAME = '{http://owncloud.org/ns}permissions';
- const SHARE_PERMISSIONS_PROPERTYNAME = '{http://open-collaboration-services.org/ns}share-permissions';
- const OCM_SHARE_PERMISSIONS_PROPERTYNAME = '{http://open-cloud-mesh.org/ns}share-permissions';
- const DOWNLOADURL_PROPERTYNAME = '{http://owncloud.org/ns}downloadURL';
- const SIZE_PROPERTYNAME = '{http://owncloud.org/ns}size';
- const GETETAG_PROPERTYNAME = '{DAV:}getetag';
- const LASTMODIFIED_PROPERTYNAME = '{DAV:}lastmodified';
- const OWNER_ID_PROPERTYNAME = '{http://owncloud.org/ns}owner-id';
- const OWNER_DISPLAY_NAME_PROPERTYNAME = '{http://owncloud.org/ns}owner-display-name';
- const CHECKSUMS_PROPERTYNAME = '{http://owncloud.org/ns}checksums';
- const DATA_FINGERPRINT_PROPERTYNAME = '{http://owncloud.org/ns}data-fingerprint';
- const HAS_PREVIEW_PROPERTYNAME = '{http://nextcloud.org/ns}has-preview';
- const MOUNT_TYPE_PROPERTYNAME = '{http://nextcloud.org/ns}mount-type';
- const IS_ENCRYPTED_PROPERTYNAME = '{http://nextcloud.org/ns}is-encrypted';
- const METADATA_ETAG_PROPERTYNAME = '{http://nextcloud.org/ns}metadata_etag';
- const UPLOAD_TIME_PROPERTYNAME = '{http://nextcloud.org/ns}upload_time';
- const CREATION_TIME_PROPERTYNAME = '{http://nextcloud.org/ns}creation_time';
- const SHARE_NOTE = '{http://nextcloud.org/ns}note';
+ public const NS_OWNCLOUD = 'http://owncloud.org/ns';
+ public const NS_NEXTCLOUD = 'http://nextcloud.org/ns';
+ public const FILEID_PROPERTYNAME = '{http://owncloud.org/ns}id';
+ public const INTERNAL_FILEID_PROPERTYNAME = '{http://owncloud.org/ns}fileid';
+ public const PERMISSIONS_PROPERTYNAME = '{http://owncloud.org/ns}permissions';
+ public const SHARE_PERMISSIONS_PROPERTYNAME = '{http://open-collaboration-services.org/ns}share-permissions';
+ public const OCM_SHARE_PERMISSIONS_PROPERTYNAME = '{http://open-cloud-mesh.org/ns}share-permissions';
+ public const DOWNLOADURL_PROPERTYNAME = '{http://owncloud.org/ns}downloadURL';
+ public const SIZE_PROPERTYNAME = '{http://owncloud.org/ns}size';
+ public const GETETAG_PROPERTYNAME = '{DAV:}getetag';
+ public const LASTMODIFIED_PROPERTYNAME = '{DAV:}lastmodified';
+ public const OWNER_ID_PROPERTYNAME = '{http://owncloud.org/ns}owner-id';
+ public const OWNER_DISPLAY_NAME_PROPERTYNAME = '{http://owncloud.org/ns}owner-display-name';
+ public const CHECKSUMS_PROPERTYNAME = '{http://owncloud.org/ns}checksums';
+ public const DATA_FINGERPRINT_PROPERTYNAME = '{http://owncloud.org/ns}data-fingerprint';
+ public const HAS_PREVIEW_PROPERTYNAME = '{http://nextcloud.org/ns}has-preview';
+ public const MOUNT_TYPE_PROPERTYNAME = '{http://nextcloud.org/ns}mount-type';
+ public const IS_ENCRYPTED_PROPERTYNAME = '{http://nextcloud.org/ns}is-encrypted';
+ public const METADATA_ETAG_PROPERTYNAME = '{http://nextcloud.org/ns}metadata_etag';
+ public const UPLOAD_TIME_PROPERTYNAME = '{http://nextcloud.org/ns}upload_time';
+ public const CREATION_TIME_PROPERTYNAME = '{http://nextcloud.org/ns}creation_time';
+ public const SHARE_NOTE = '{http://nextcloud.org/ns}note';
/**
* Reference to main server object
diff --git a/apps/dav/lib/Connector/Sabre/FilesReportPlugin.php b/apps/dav/lib/Connector/Sabre/FilesReportPlugin.php
index 617847626cc..0e7db3f57ce 100644
--- a/apps/dav/lib/Connector/Sabre/FilesReportPlugin.php
+++ b/apps/dav/lib/Connector/Sabre/FilesReportPlugin.php
@@ -48,10 +48,10 @@ use Sabre\DAV\Xml\Response\MultiStatus;
class FilesReportPlugin extends ServerPlugin {
// namespace
- const NS_OWNCLOUD = 'http://owncloud.org/ns';
- const REPORT_NAME = '{http://owncloud.org/ns}filter-files';
- const SYSTEMTAG_PROPERTYNAME = '{http://owncloud.org/ns}systemtag';
- const CIRCLE_PROPERTYNAME = '{http://owncloud.org/ns}circle';
+ public const NS_OWNCLOUD = 'http://owncloud.org/ns';
+ public const REPORT_NAME = '{http://owncloud.org/ns}filter-files';
+ public const SYSTEMTAG_PROPERTYNAME = '{http://owncloud.org/ns}systemtag';
+ public const CIRCLE_PROPERTYNAME = '{http://owncloud.org/ns}circle';
/**
* Reference to main server object
diff --git a/apps/dav/lib/Connector/Sabre/ShareTypeList.php b/apps/dav/lib/Connector/Sabre/ShareTypeList.php
index ed32b7a00b1..5a4a1f5635f 100644
--- a/apps/dav/lib/Connector/Sabre/ShareTypeList.php
+++ b/apps/dav/lib/Connector/Sabre/ShareTypeList.php
@@ -32,7 +32,7 @@ use Sabre\Xml\Writer;
* This property contains multiple "share-type" elements, each containing a share type.
*/
class ShareTypeList implements Element {
- const NS_OWNCLOUD = 'http://owncloud.org/ns';
+ public const NS_OWNCLOUD = 'http://owncloud.org/ns';
/**
* Share types
diff --git a/apps/dav/lib/Connector/Sabre/ShareeList.php b/apps/dav/lib/Connector/Sabre/ShareeList.php
index d303305fe47..235ae9cd823 100644
--- a/apps/dav/lib/Connector/Sabre/ShareeList.php
+++ b/apps/dav/lib/Connector/Sabre/ShareeList.php
@@ -35,7 +35,7 @@ use Sabre\Xml\XmlSerializable;
* This property contains multiple "sharee" elements, each containing a share sharee
*/
class ShareeList implements XmlSerializable {
- const NS_NEXTCLOUD = 'http://nextcloud.org/ns';
+ public const NS_NEXTCLOUD = 'http://nextcloud.org/ns';
/** @var IShare[] */
private $shares;
diff --git a/apps/dav/lib/Connector/Sabre/SharesPlugin.php b/apps/dav/lib/Connector/Sabre/SharesPlugin.php
index ee4246011bf..63c204fda4e 100644
--- a/apps/dav/lib/Connector/Sabre/SharesPlugin.php
+++ b/apps/dav/lib/Connector/Sabre/SharesPlugin.php
@@ -35,10 +35,10 @@ use Sabre\DAV\PropFind;
* Sabre Plugin to provide share-related properties
*/
class SharesPlugin extends \Sabre\DAV\ServerPlugin {
- const NS_OWNCLOUD = 'http://owncloud.org/ns';
- const NS_NEXTCLOUD = 'http://nextcloud.org/ns';
- const SHARETYPES_PROPERTYNAME = '{http://owncloud.org/ns}share-types';
- const SHAREES_PROPERTYNAME = '{http://nextcloud.org/ns}sharees';
+ public const NS_OWNCLOUD = 'http://owncloud.org/ns';
+ public const NS_NEXTCLOUD = 'http://nextcloud.org/ns';
+ public const SHARETYPES_PROPERTYNAME = '{http://owncloud.org/ns}share-types';
+ public const SHAREES_PROPERTYNAME = '{http://nextcloud.org/ns}sharees';
/**
* Reference to main server object
diff --git a/apps/dav/lib/Connector/Sabre/TagList.php b/apps/dav/lib/Connector/Sabre/TagList.php
index c73f698c188..603087fd5fa 100644
--- a/apps/dav/lib/Connector/Sabre/TagList.php
+++ b/apps/dav/lib/Connector/Sabre/TagList.php
@@ -34,7 +34,7 @@ use Sabre\Xml\Writer;
* This property contains multiple "tag" elements, each containing a tag name.
*/
class TagList implements Element {
- const NS_OWNCLOUD = 'http://owncloud.org/ns';
+ public const NS_OWNCLOUD = 'http://owncloud.org/ns';
/**
* tags
diff --git a/apps/dav/lib/Connector/Sabre/TagsPlugin.php b/apps/dav/lib/Connector/Sabre/TagsPlugin.php
index 33698810cfb..ad3e0611270 100644
--- a/apps/dav/lib/Connector/Sabre/TagsPlugin.php
+++ b/apps/dav/lib/Connector/Sabre/TagsPlugin.php
@@ -55,10 +55,10 @@ use Sabre\DAV\PropPatch;
class TagsPlugin extends \Sabre\DAV\ServerPlugin {
// namespace
- const NS_OWNCLOUD = 'http://owncloud.org/ns';
- const TAGS_PROPERTYNAME = '{http://owncloud.org/ns}tags';
- const FAVORITE_PROPERTYNAME = '{http://owncloud.org/ns}favorite';
- const TAG_FAVORITE = '_$!<Favorite>!$_';
+ public const NS_OWNCLOUD = 'http://owncloud.org/ns';
+ public const TAGS_PROPERTYNAME = '{http://owncloud.org/ns}tags';
+ public const FAVORITE_PROPERTYNAME = '{http://owncloud.org/ns}favorite';
+ public const TAG_FAVORITE = '_$!<Favorite>!$_';
/**
* Reference to main server object