aboutsummaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/CalDAV
diff options
context:
space:
mode:
Diffstat (limited to 'apps/dav/lib/CalDAV')
-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
11 files changed, 35 insertions, 35 deletions
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