summaryrefslogtreecommitdiffstats
path: root/apps/dav/lib
diff options
context:
space:
mode:
Diffstat (limited to 'apps/dav/lib')
-rw-r--r--apps/dav/lib/AppInfo/Application.php2
-rw-r--r--apps/dav/lib/CalDAV/Activity/Provider/Calendar.php18
-rw-r--r--apps/dav/lib/CalDAV/Activity/Provider/Event.php6
-rw-r--r--apps/dav/lib/CalDAV/BirthdayCalendar/EnablePlugin.php2
-rw-r--r--apps/dav/lib/CalDAV/BirthdayService.php2
-rw-r--r--apps/dav/lib/CalDAV/CalDavBackend.php22
-rw-r--r--apps/dav/lib/CalDAV/Plugin.php2
-rw-r--r--apps/dav/lib/CalDAV/Proxy/ProxyMapper.php4
-rw-r--r--apps/dav/lib/CalDAV/Publishing/PublishPlugin.php2
-rw-r--r--apps/dav/lib/CalDAV/Schedule/IMipPlugin.php8
-rw-r--r--apps/dav/lib/CalDAV/Search/SearchPlugin.php2
-rw-r--r--apps/dav/lib/CalDAV/WebcalCaching/Plugin.php2
-rw-r--r--apps/dav/lib/CardDAV/CardDavBackend.php4
-rw-r--r--apps/dav/lib/CardDAV/Xml/Groups.php2
-rw-r--r--apps/dav/lib/Command/MoveCalendar.php2
-rw-r--r--apps/dav/lib/Comments/CommentNode.php18
-rw-r--r--apps/dav/lib/Comments/CommentsPlugin.php10
-rw-r--r--apps/dav/lib/Comments/EntityCollection.php2
-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
-rw-r--r--apps/dav/lib/DAV/GroupPrincipalBackend.php2
-rw-r--r--apps/dav/lib/DAV/Sharing/Backend.php6
-rw-r--r--apps/dav/lib/DAV/Sharing/Plugin.php4
-rw-r--r--apps/dav/lib/Provisioning/Apple/AppleProvisioningNode.php2
-rw-r--r--apps/dav/lib/SystemTag/SystemTagPlugin.php14
36 files changed, 114 insertions, 114 deletions
diff --git a/apps/dav/lib/AppInfo/Application.php b/apps/dav/lib/AppInfo/Application.php
index 7a80c9b2152..29c77cad07f 100644
--- a/apps/dav/lib/AppInfo/Application.php
+++ b/apps/dav/lib/AppInfo/Application.php
@@ -53,7 +53,7 @@ use OCP\IUser;
use Symfony\Component\EventDispatcher\GenericEvent;
class Application extends App {
- const APP_ID = 'dav';
+ public const APP_ID = 'dav';
/**
* Application constructor.
diff --git a/apps/dav/lib/CalDAV/Activity/Provider/Calendar.php b/apps/dav/lib/CalDAV/Activity/Provider/Calendar.php
index 42b70f0a928..ee0d6144c92 100644
--- a/apps/dav/lib/CalDAV/Activity/Provider/Calendar.php
+++ b/apps/dav/lib/CalDAV/Activity/Provider/Calendar.php
@@ -36,15 +36,15 @@ use OCP\IUserManager;
use OCP\L10N\IFactory;
class Calendar extends Base {
- const SUBJECT_ADD = 'calendar_add';
- const SUBJECT_UPDATE = 'calendar_update';
- const SUBJECT_DELETE = 'calendar_delete';
- const SUBJECT_PUBLISH = 'calendar_publish';
- const SUBJECT_UNPUBLISH = 'calendar_unpublish';
- const SUBJECT_SHARE_USER = 'calendar_user_share';
- const SUBJECT_SHARE_GROUP = 'calendar_group_share';
- const SUBJECT_UNSHARE_USER = 'calendar_user_unshare';
- const SUBJECT_UNSHARE_GROUP = 'calendar_group_unshare';
+ public const SUBJECT_ADD = 'calendar_add';
+ public const SUBJECT_UPDATE = 'calendar_update';
+ public const SUBJECT_DELETE = 'calendar_delete';
+ public const SUBJECT_PUBLISH = 'calendar_publish';
+ public const SUBJECT_UNPUBLISH = 'calendar_unpublish';
+ public const SUBJECT_SHARE_USER = 'calendar_user_share';
+ public const SUBJECT_SHARE_GROUP = 'calendar_group_share';
+ public const SUBJECT_UNSHARE_USER = 'calendar_user_unshare';
+ public const SUBJECT_UNSHARE_GROUP = 'calendar_group_unshare';
/** @var IFactory */
protected $languageFactory;
diff --git a/apps/dav/lib/CalDAV/Activity/Provider/Event.php b/apps/dav/lib/CalDAV/Activity/Provider/Event.php
index f044c2f8208..9ca0727fab7 100644
--- a/apps/dav/lib/CalDAV/Activity/Provider/Event.php
+++ b/apps/dav/lib/CalDAV/Activity/Provider/Event.php
@@ -34,9 +34,9 @@ use OCP\IUserManager;
use OCP\L10N\IFactory;
class Event extends Base {
- const SUBJECT_OBJECT_ADD = 'object_add';
- const SUBJECT_OBJECT_UPDATE = 'object_update';
- const SUBJECT_OBJECT_DELETE = 'object_delete';
+ public const SUBJECT_OBJECT_ADD = 'object_add';
+ public const SUBJECT_OBJECT_UPDATE = 'object_update';
+ public const SUBJECT_OBJECT_DELETE = 'object_delete';
/** @var IFactory */
protected $languageFactory;
diff --git a/apps/dav/lib/CalDAV/BirthdayCalendar/EnablePlugin.php b/apps/dav/lib/CalDAV/BirthdayCalendar/EnablePlugin.php
index a1ebd409f0e..1c77b8d4272 100644
--- a/apps/dav/lib/CalDAV/BirthdayCalendar/EnablePlugin.php
+++ b/apps/dav/lib/CalDAV/BirthdayCalendar/EnablePlugin.php
@@ -39,7 +39,7 @@ use Sabre\HTTP\ResponseInterface;
* @package OCA\DAV\CalDAV\BirthdayCalendar
*/
class EnablePlugin extends ServerPlugin {
- const NS_Nextcloud = 'http://nextcloud.com/ns';
+ public const NS_Nextcloud = 'http://nextcloud.com/ns';
/**
* @var IConfig
diff --git a/apps/dav/lib/CalDAV/BirthdayService.php b/apps/dav/lib/CalDAV/BirthdayService.php
index 2969e5f3ead..ab70d6ceb43 100644
--- a/apps/dav/lib/CalDAV/BirthdayService.php
+++ b/apps/dav/lib/CalDAV/BirthdayService.php
@@ -49,7 +49,7 @@ use Sabre\VObject\Reader;
* @package OCA\DAV\CalDAV
*/
class BirthdayService {
- const BIRTHDAY_CALENDAR_URI = 'contact_birthdays';
+ public const BIRTHDAY_CALENDAR_URI = 'contact_birthdays';
/** @var GroupPrincipalBackend */
private $principalBackend;
diff --git a/apps/dav/lib/CalDAV/CalDavBackend.php b/apps/dav/lib/CalDAV/CalDavBackend.php
index b620b20d4d5..ddfb0a641e5 100644
--- a/apps/dav/lib/CalDAV/CalDavBackend.php
+++ b/apps/dav/lib/CalDAV/CalDavBackend.php
@@ -77,14 +77,14 @@ use Symfony\Component\EventDispatcher\GenericEvent;
* @package OCA\DAV\CalDAV
*/
class CalDavBackend extends AbstractBackend implements SyncSupport, SubscriptionSupport, SchedulingSupport {
- const CALENDAR_TYPE_CALENDAR = 0;
- const CALENDAR_TYPE_SUBSCRIPTION = 1;
+ public const CALENDAR_TYPE_CALENDAR = 0;
+ public const CALENDAR_TYPE_SUBSCRIPTION = 1;
- const PERSONAL_CALENDAR_URI = 'personal';
- const PERSONAL_CALENDAR_NAME = 'Personal';
+ public const PERSONAL_CALENDAR_URI = 'personal';
+ public const PERSONAL_CALENDAR_NAME = 'Personal';
- const RESOURCE_BOOKING_CALENDAR_URI = 'calendar';
- const RESOURCE_BOOKING_CALENDAR_NAME = 'Calendar';
+ public const RESOURCE_BOOKING_CALENDAR_URI = 'calendar';
+ public const RESOURCE_BOOKING_CALENDAR_NAME = 'Calendar';
/**
* We need to specify a max date, because we need to stop *somewhere*
@@ -94,12 +94,12 @@ class CalDavBackend extends AbstractBackend implements SyncSupport, Subscription
* in 2038-01-19 to avoid problems when the date is converted
* to a unix timestamp.
*/
- const MAX_DATE = '2038-01-01';
+ public const MAX_DATE = '2038-01-01';
- const ACCESS_PUBLIC = 4;
- const CLASSIFICATION_PUBLIC = 0;
- const CLASSIFICATION_PRIVATE = 1;
- const CLASSIFICATION_CONFIDENTIAL = 2;
+ public const ACCESS_PUBLIC = 4;
+ public const CLASSIFICATION_PUBLIC = 0;
+ public const CLASSIFICATION_PRIVATE = 1;
+ public const CLASSIFICATION_CONFIDENTIAL = 2;
/**
* List of CalDAV properties, and how they map to database field names
diff --git a/apps/dav/lib/CalDAV/Plugin.php b/apps/dav/lib/CalDAV/Plugin.php
index c298a3f5ab6..4c865ba2ae7 100644
--- a/apps/dav/lib/CalDAV/Plugin.php
+++ b/apps/dav/lib/CalDAV/Plugin.php
@@ -25,7 +25,7 @@
namespace OCA\DAV\CalDAV;
class Plugin extends \Sabre\CalDAV\Plugin {
- const SYSTEM_CALENDAR_ROOT = 'system-calendars';
+ public const SYSTEM_CALENDAR_ROOT = 'system-calendars';
/**
* Returns the path to a principal's calendar home.
diff --git a/apps/dav/lib/CalDAV/Proxy/ProxyMapper.php b/apps/dav/lib/CalDAV/Proxy/ProxyMapper.php
index bc13efc1e5a..689a6f0efc8 100644
--- a/apps/dav/lib/CalDAV/Proxy/ProxyMapper.php
+++ b/apps/dav/lib/CalDAV/Proxy/ProxyMapper.php
@@ -36,8 +36,8 @@ use OCP\IDBConnection;
* @package OCA\DAV\CalDAV\Proxy
*/
class ProxyMapper extends QBMapper {
- const PERMISSION_READ = 1;
- const PERMISSION_WRITE = 2;
+ public const PERMISSION_READ = 1;
+ public const PERMISSION_WRITE = 2;
/**
* ProxyMapper constructor.
diff --git a/apps/dav/lib/CalDAV/Publishing/PublishPlugin.php b/apps/dav/lib/CalDAV/Publishing/PublishPlugin.php
index 214fb79464e..e3561527ce0 100644
--- a/apps/dav/lib/CalDAV/Publishing/PublishPlugin.php
+++ b/apps/dav/lib/CalDAV/Publishing/PublishPlugin.php
@@ -40,7 +40,7 @@ use Sabre\HTTP\RequestInterface;
use Sabre\HTTP\ResponseInterface;
class PublishPlugin extends ServerPlugin {
- const NS_CALENDARSERVER = 'http://calendarserver.org/ns/';
+ public const NS_CALENDARSERVER = 'http://calendarserver.org/ns/';
/**
* Reference to SabreDAV server object.
diff --git a/apps/dav/lib/CalDAV/Schedule/IMipPlugin.php b/apps/dav/lib/CalDAV/Schedule/IMipPlugin.php
index 15228f9bc3d..2bbc6498dba 100644
--- a/apps/dav/lib/CalDAV/Schedule/IMipPlugin.php
+++ b/apps/dav/lib/CalDAV/Schedule/IMipPlugin.php
@@ -102,11 +102,11 @@ class IMipPlugin extends SabreIMipPlugin {
/** @var IUserManager */
private $userManager;
- const MAX_DATE = '2038-01-01';
+ public const MAX_DATE = '2038-01-01';
- const METHOD_REQUEST = 'request';
- const METHOD_REPLY = 'reply';
- const METHOD_CANCEL = 'cancel';
+ public const METHOD_REQUEST = 'request';
+ public const METHOD_REPLY = 'reply';
+ public const METHOD_CANCEL = 'cancel';
/**
* @param IConfig $config
diff --git a/apps/dav/lib/CalDAV/Search/SearchPlugin.php b/apps/dav/lib/CalDAV/Search/SearchPlugin.php
index dc3cbdf06ba..0776e8838b8 100644
--- a/apps/dav/lib/CalDAV/Search/SearchPlugin.php
+++ b/apps/dav/lib/CalDAV/Search/SearchPlugin.php
@@ -32,7 +32,7 @@ use Sabre\DAV\Server;
use Sabre\DAV\ServerPlugin;
class SearchPlugin extends ServerPlugin {
- const NS_Nextcloud = 'http://nextcloud.com/ns';
+ public const NS_Nextcloud = 'http://nextcloud.com/ns';
/**
* Reference to SabreDAV server object.
diff --git a/apps/dav/lib/CalDAV/WebcalCaching/Plugin.php b/apps/dav/lib/CalDAV/WebcalCaching/Plugin.php
index 2cfeb1108f1..8cfbb38b6e0 100644
--- a/apps/dav/lib/CalDAV/WebcalCaching/Plugin.php
+++ b/apps/dav/lib/CalDAV/WebcalCaching/Plugin.php
@@ -43,7 +43,7 @@ class Plugin extends ServerPlugin {
*
* @var string[]
*/
- const ENABLE_FOR_CLIENTS = [];
+ public const ENABLE_FOR_CLIENTS = [];
/**
* @var bool
diff --git a/apps/dav/lib/CardDAV/CardDavBackend.php b/apps/dav/lib/CardDAV/CardDavBackend.php
index 782bc4c0f58..71b7e846f3d 100644
--- a/apps/dav/lib/CardDAV/CardDavBackend.php
+++ b/apps/dav/lib/CardDAV/CardDavBackend.php
@@ -55,8 +55,8 @@ use Symfony\Component\EventDispatcher\EventDispatcherInterface;
use Symfony\Component\EventDispatcher\GenericEvent;
class CardDavBackend implements BackendInterface, SyncSupport {
- const PERSONAL_ADDRESSBOOK_URI = 'contacts';
- const PERSONAL_ADDRESSBOOK_NAME = 'Contacts';
+ public const PERSONAL_ADDRESSBOOK_URI = 'contacts';
+ public const PERSONAL_ADDRESSBOOK_NAME = 'Contacts';
/** @var Principal */
private $principalBackend;
diff --git a/apps/dav/lib/CardDAV/Xml/Groups.php b/apps/dav/lib/CardDAV/Xml/Groups.php
index 701aa679b44..ea195ca3e21 100644
--- a/apps/dav/lib/CardDAV/Xml/Groups.php
+++ b/apps/dav/lib/CardDAV/Xml/Groups.php
@@ -27,7 +27,7 @@ use Sabre\Xml\Writer;
use Sabre\Xml\XmlSerializable;
class Groups implements XmlSerializable {
- const NS_OWNCLOUD = 'http://owncloud.org/ns';
+ public const NS_OWNCLOUD = 'http://owncloud.org/ns';
/** @var string[] of TYPE:CHECKSUM */
private $groups;
diff --git a/apps/dav/lib/Command/MoveCalendar.php b/apps/dav/lib/Command/MoveCalendar.php
index 366e51ad189..10fa69b70ca 100644
--- a/apps/dav/lib/Command/MoveCalendar.php
+++ b/apps/dav/lib/Command/MoveCalendar.php
@@ -62,7 +62,7 @@ class MoveCalendar extends Command {
/** @var CalDavBackend */
private $calDav;
- const URI_USERS = 'principals/users/';
+ public const URI_USERS = 'principals/users/';
/**
* @param IUserManager $userManager
diff --git a/apps/dav/lib/Comments/CommentNode.php b/apps/dav/lib/Comments/CommentNode.php
index d21f13ebccd..03bc432ccb9 100644
--- a/apps/dav/lib/Comments/CommentNode.php
+++ b/apps/dav/lib/Comments/CommentNode.php
@@ -35,16 +35,16 @@ use Sabre\DAV\Exception\MethodNotAllowed;
use Sabre\DAV\PropPatch;
class CommentNode implements \Sabre\DAV\INode, \Sabre\DAV\IProperties {
- const NS_OWNCLOUD = 'http://owncloud.org/ns';
+ public const NS_OWNCLOUD = 'http://owncloud.org/ns';
- const PROPERTY_NAME_UNREAD = '{http://owncloud.org/ns}isUnread';
- const PROPERTY_NAME_MESSAGE = '{http://owncloud.org/ns}message';
- const PROPERTY_NAME_ACTOR_DISPLAYNAME = '{http://owncloud.org/ns}actorDisplayName';
- const PROPERTY_NAME_MENTIONS = '{http://owncloud.org/ns}mentions';
- const PROPERTY_NAME_MENTION = '{http://owncloud.org/ns}mention';
- const PROPERTY_NAME_MENTION_TYPE = '{http://owncloud.org/ns}mentionType';
- const PROPERTY_NAME_MENTION_ID = '{http://owncloud.org/ns}mentionId';
- const PROPERTY_NAME_MENTION_DISPLAYNAME = '{http://owncloud.org/ns}mentionDisplayName';
+ public const PROPERTY_NAME_UNREAD = '{http://owncloud.org/ns}isUnread';
+ public const PROPERTY_NAME_MESSAGE = '{http://owncloud.org/ns}message';
+ public const PROPERTY_NAME_ACTOR_DISPLAYNAME = '{http://owncloud.org/ns}actorDisplayName';
+ public const PROPERTY_NAME_MENTIONS = '{http://owncloud.org/ns}mentions';
+ public const PROPERTY_NAME_MENTION = '{http://owncloud.org/ns}mention';
+ public const PROPERTY_NAME_MENTION_TYPE = '{http://owncloud.org/ns}mentionType';
+ public const PROPERTY_NAME_MENTION_ID = '{http://owncloud.org/ns}mentionId';
+ public const PROPERTY_NAME_MENTION_DISPLAYNAME = '{http://owncloud.org/ns}mentionDisplayName';
/** @var IComment */
public $comment;
diff --git a/apps/dav/lib/Comments/CommentsPlugin.php b/apps/dav/lib/Comments/CommentsPlugin.php
index ecfb5e5cfab..8c73f6695b9 100644
--- a/apps/dav/lib/Comments/CommentsPlugin.php
+++ b/apps/dav/lib/Comments/CommentsPlugin.php
@@ -45,12 +45,12 @@ use Sabre\Xml\Writer;
*/
class CommentsPlugin extends ServerPlugin {
// namespace
- const NS_OWNCLOUD = 'http://owncloud.org/ns';
+ public const NS_OWNCLOUD = 'http://owncloud.org/ns';
- const REPORT_NAME = '{http://owncloud.org/ns}filter-comments';
- const REPORT_PARAM_LIMIT = '{http://owncloud.org/ns}limit';
- const REPORT_PARAM_OFFSET = '{http://owncloud.org/ns}offset';
- const REPORT_PARAM_TIMESTAMP = '{http://owncloud.org/ns}datetime';
+ public const REPORT_NAME = '{http://owncloud.org/ns}filter-comments';
+ public const REPORT_PARAM_LIMIT = '{http://owncloud.org/ns}limit';
+ public const REPORT_PARAM_OFFSET = '{http://owncloud.org/ns}offset';
+ public const REPORT_PARAM_TIMESTAMP = '{http://owncloud.org/ns}datetime';
/** @var ICommentsManager */
protected $commentsManager;
diff --git a/apps/dav/lib/Comments/EntityCollection.php b/apps/dav/lib/Comments/EntityCollection.php
index d64c5c36423..683cbd62529 100644
--- a/apps/dav/lib/Comments/EntityCollection.php
+++ b/apps/dav/lib/Comments/EntityCollection.php
@@ -41,7 +41,7 @@ use Sabre\DAV\PropPatch;
* @package OCA\DAV\Comments
*/
class EntityCollection extends RootCollection implements IProperties {
- const PROPERTY_NAME_READ_MARKER = '{http://owncloud.org/ns}readMarker';
+ public const PROPERTY_NAME_READ_MARKER = '{http://owncloud.org/ns}readMarker';
/** @var string */
protected $id;
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
diff --git a/apps/dav/lib/DAV/GroupPrincipalBackend.php b/apps/dav/lib/DAV/GroupPrincipalBackend.php
index cfa896c4f2c..15e95a9bd29 100644
--- a/apps/dav/lib/DAV/GroupPrincipalBackend.php
+++ b/apps/dav/lib/DAV/GroupPrincipalBackend.php
@@ -36,7 +36,7 @@ use Sabre\DAV\PropPatch;
use Sabre\DAVACL\PrincipalBackend\BackendInterface;
class GroupPrincipalBackend implements BackendInterface {
- const PRINCIPAL_PREFIX = 'principals/groups';
+ public const PRINCIPAL_PREFIX = 'principals/groups';
/** @var IGroupManager */
private $groupManager;
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/Plugin.php b/apps/dav/lib/DAV/Sharing/Plugin.php
index 148afa323dd..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;
diff --git a/apps/dav/lib/Provisioning/Apple/AppleProvisioningNode.php b/apps/dav/lib/Provisioning/Apple/AppleProvisioningNode.php
index 98c9ce0b6e1..e2e192eda85 100644
--- a/apps/dav/lib/Provisioning/Apple/AppleProvisioningNode.php
+++ b/apps/dav/lib/Provisioning/Apple/AppleProvisioningNode.php
@@ -30,7 +30,7 @@ use Sabre\DAV\IProperties;
use Sabre\DAV\PropPatch;
class AppleProvisioningNode implements INode, IProperties {
- const FILENAME = 'apple-provisioning.mobileconfig';
+ public const FILENAME = 'apple-provisioning.mobileconfig';
protected $timeFactory;
diff --git a/apps/dav/lib/SystemTag/SystemTagPlugin.php b/apps/dav/lib/SystemTag/SystemTagPlugin.php
index b05ba07ead2..c83fd3f0487 100644
--- a/apps/dav/lib/SystemTag/SystemTagPlugin.php
+++ b/apps/dav/lib/SystemTag/SystemTagPlugin.php
@@ -50,13 +50,13 @@ use Sabre\HTTP\ResponseInterface;
class SystemTagPlugin extends \Sabre\DAV\ServerPlugin {
// namespace
- const NS_OWNCLOUD = 'http://owncloud.org/ns';
- const ID_PROPERTYNAME = '{http://owncloud.org/ns}id';
- const DISPLAYNAME_PROPERTYNAME = '{http://owncloud.org/ns}display-name';
- const USERVISIBLE_PROPERTYNAME = '{http://owncloud.org/ns}user-visible';
- const USERASSIGNABLE_PROPERTYNAME = '{http://owncloud.org/ns}user-assignable';
- const GROUPS_PROPERTYNAME = '{http://owncloud.org/ns}groups';
- const CANASSIGN_PROPERTYNAME = '{http://owncloud.org/ns}can-assign';
+ public const NS_OWNCLOUD = 'http://owncloud.org/ns';
+ public const ID_PROPERTYNAME = '{http://owncloud.org/ns}id';
+ public const DISPLAYNAME_PROPERTYNAME = '{http://owncloud.org/ns}display-name';
+ public const USERVISIBLE_PROPERTYNAME = '{http://owncloud.org/ns}user-visible';
+ public const USERASSIGNABLE_PROPERTYNAME = '{http://owncloud.org/ns}user-assignable';
+ public const GROUPS_PROPERTYNAME = '{http://owncloud.org/ns}groups';
+ public const CANASSIGN_PROPERTYNAME = '{http://owncloud.org/ns}can-assign';
/**
* @var \Sabre\DAV\Server $server