summaryrefslogtreecommitdiffstats
path: root/lib/public/Files
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 /lib/public/Files
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 'lib/public/Files')
-rw-r--r--lib/public/Files/Cache/ICache.php8
-rw-r--r--lib/public/Files/Cache/ICacheEntry.php2
-rw-r--r--lib/public/Files/Cache/IScanner.php12
-rw-r--r--lib/public/Files/Cache/IWatcher.php6
-rw-r--r--lib/public/Files/FileInfo.php14
-rw-r--r--lib/public/Files/Notify/IChange.php8
-rw-r--r--lib/public/Files/Search/ISearchBinaryOperator.php6
-rw-r--r--lib/public/Files/Search/ISearchComparison.php12
-rw-r--r--lib/public/Files/Search/ISearchOrder.php4
-rw-r--r--lib/public/Files/Storage/INotifyStorage.php8
-rw-r--r--lib/public/Files/StorageNotAvailableException.php14
11 files changed, 47 insertions, 47 deletions
diff --git a/lib/public/Files/Cache/ICache.php b/lib/public/Files/Cache/ICache.php
index d1388f02b1d..643a2bad628 100644
--- a/lib/public/Files/Cache/ICache.php
+++ b/lib/public/Files/Cache/ICache.php
@@ -37,10 +37,10 @@ use OCP\Files\Search\ISearchQuery;
* @since 9.0.0
*/
interface ICache {
- const NOT_FOUND = 0;
- const PARTIAL = 1; //only partial data available, file not cached in the database
- const SHALLOW = 2; //folder in cache, but not all child files are completely scanned
- const COMPLETE = 3;
+ public const NOT_FOUND = 0;
+ public const PARTIAL = 1; //only partial data available, file not cached in the database
+ public const SHALLOW = 2; //folder in cache, but not all child files are completely scanned
+ public const COMPLETE = 3;
/**
* Get the numeric storage id for this cache's storage
diff --git a/lib/public/Files/Cache/ICacheEntry.php b/lib/public/Files/Cache/ICacheEntry.php
index 369c8b69fc1..c9766620885 100644
--- a/lib/public/Files/Cache/ICacheEntry.php
+++ b/lib/public/Files/Cache/ICacheEntry.php
@@ -28,7 +28,7 @@ namespace OCP\Files\Cache;
* @since 9.0.0
*/
interface ICacheEntry {
- const DIRECTORY_MIMETYPE = 'httpd/unix-directory';
+ public const DIRECTORY_MIMETYPE = 'httpd/unix-directory';
/**
* Get the numeric id of a file
diff --git a/lib/public/Files/Cache/IScanner.php b/lib/public/Files/Cache/IScanner.php
index e12561eb0c5..c15d42315bf 100644
--- a/lib/public/Files/Cache/IScanner.php
+++ b/lib/public/Files/Cache/IScanner.php
@@ -28,13 +28,13 @@ namespace OCP\Files\Cache;
* @since 9.0.0
*/
interface IScanner {
- const SCAN_RECURSIVE_INCOMPLETE = 2; // only recursive into not fully scanned folders
- const SCAN_RECURSIVE = true;
- const SCAN_SHALLOW = false;
+ public const SCAN_RECURSIVE_INCOMPLETE = 2; // only recursive into not fully scanned folders
+ public const SCAN_RECURSIVE = true;
+ public const SCAN_SHALLOW = false;
- const REUSE_NONE = 0;
- const REUSE_ETAG = 1;
- const REUSE_SIZE = 2;
+ public const REUSE_NONE = 0;
+ public const REUSE_ETAG = 1;
+ public const REUSE_SIZE = 2;
/**
* scan a single file and store it in the cache
diff --git a/lib/public/Files/Cache/IWatcher.php b/lib/public/Files/Cache/IWatcher.php
index 0c8065828e7..e279c8b07e0 100644
--- a/lib/public/Files/Cache/IWatcher.php
+++ b/lib/public/Files/Cache/IWatcher.php
@@ -28,9 +28,9 @@ namespace OCP\Files\Cache;
* @since 9.0.0
*/
interface IWatcher {
- const CHECK_NEVER = 0; // never check the underlying filesystem for updates
- const CHECK_ONCE = 1; // check the underlying filesystem for updates once every request for each file
- const CHECK_ALWAYS = 2; // always check the underlying filesystem for updates
+ public const CHECK_NEVER = 0; // never check the underlying filesystem for updates
+ public const CHECK_ONCE = 1; // check the underlying filesystem for updates once every request for each file
+ public const CHECK_ALWAYS = 2; // always check the underlying filesystem for updates
/**
* @param int $policy either IWatcher::CHECK_NEVER, IWatcher::CHECK_ONCE, IWatcher::CHECK_ALWAYS
diff --git a/lib/public/Files/FileInfo.php b/lib/public/Files/FileInfo.php
index f7a36e0542d..f8b0623c3e4 100644
--- a/lib/public/Files/FileInfo.php
+++ b/lib/public/Files/FileInfo.php
@@ -38,38 +38,38 @@ interface FileInfo {
/**
* @since 7.0.0
*/
- const TYPE_FILE = 'file';
+ public const TYPE_FILE = 'file';
/**
* @since 7.0.0
*/
- const TYPE_FOLDER = 'dir';
+ public const TYPE_FOLDER = 'dir';
/**
* @const \OCP\Files\FileInfo::SPACE_NOT_COMPUTED Return value for a not computed space value
* @since 8.0.0
*/
- const SPACE_NOT_COMPUTED = -1;
+ public const SPACE_NOT_COMPUTED = -1;
/**
* @const \OCP\Files\FileInfo::SPACE_UNKNOWN Return value for unknown space value
* @since 8.0.0
*/
- const SPACE_UNKNOWN = -2;
+ public const SPACE_UNKNOWN = -2;
/**
* @const \OCP\Files\FileInfo::SPACE_UNLIMITED Return value for unlimited space
* @since 8.0.0
*/
- const SPACE_UNLIMITED = -3;
+ public const SPACE_UNLIMITED = -3;
/**
* @since 9.1.0
*/
- const MIMETYPE_FOLDER = 'httpd/unix-directory';
+ public const MIMETYPE_FOLDER = 'httpd/unix-directory';
/**
* @const \OCP\Files\FileInfo::BLACKLIST_FILES_REGEX Return regular expression to test filenames against (blacklisting)
* @since 12.0.0
*/
- const BLACKLIST_FILES_REGEX = '\.(part|filepart)$';
+ public const BLACKLIST_FILES_REGEX = '\.(part|filepart)$';
/**
* Get the Etag of the file or folder
diff --git a/lib/public/Files/Notify/IChange.php b/lib/public/Files/Notify/IChange.php
index 762030c738a..b018be77932 100644
--- a/lib/public/Files/Notify/IChange.php
+++ b/lib/public/Files/Notify/IChange.php
@@ -29,10 +29,10 @@ namespace OCP\Files\Notify;
* @since 12.0.0
*/
interface IChange {
- const ADDED = 1;
- const REMOVED = 2;
- const MODIFIED = 3;
- const RENAMED = 4;
+ public const ADDED = 1;
+ public const REMOVED = 2;
+ public const MODIFIED = 3;
+ public const RENAMED = 4;
/**
* Get the type of the change
diff --git a/lib/public/Files/Search/ISearchBinaryOperator.php b/lib/public/Files/Search/ISearchBinaryOperator.php
index a089323c9fc..554108aadf2 100644
--- a/lib/public/Files/Search/ISearchBinaryOperator.php
+++ b/lib/public/Files/Search/ISearchBinaryOperator.php
@@ -27,9 +27,9 @@ namespace OCP\Files\Search;
* @since 12.0.0
*/
interface ISearchBinaryOperator extends ISearchOperator {
- const OPERATOR_AND = 'and';
- const OPERATOR_OR = 'or';
- const OPERATOR_NOT = 'not';
+ public const OPERATOR_AND = 'and';
+ public const OPERATOR_OR = 'or';
+ public const OPERATOR_NOT = 'not';
/**
* The type of binary operator
diff --git a/lib/public/Files/Search/ISearchComparison.php b/lib/public/Files/Search/ISearchComparison.php
index 6cfbb29ee54..e2e0a705183 100644
--- a/lib/public/Files/Search/ISearchComparison.php
+++ b/lib/public/Files/Search/ISearchComparison.php
@@ -27,12 +27,12 @@ namespace OCP\Files\Search;
* @since 12.0.0
*/
interface ISearchComparison extends ISearchOperator {
- const COMPARE_EQUAL = 'eq';
- const COMPARE_GREATER_THAN = 'gt';
- const COMPARE_GREATER_THAN_EQUAL = 'gte';
- const COMPARE_LESS_THAN = 'lt';
- const COMPARE_LESS_THAN_EQUAL = 'lte';
- const COMPARE_LIKE = 'like';
+ public const COMPARE_EQUAL = 'eq';
+ public const COMPARE_GREATER_THAN = 'gt';
+ public const COMPARE_GREATER_THAN_EQUAL = 'gte';
+ public const COMPARE_LESS_THAN = 'lt';
+ public const COMPARE_LESS_THAN_EQUAL = 'lte';
+ public const COMPARE_LIKE = 'like';
/**
* Get the type of comparison, one of the ISearchComparison::COMPARE_* constants
diff --git a/lib/public/Files/Search/ISearchOrder.php b/lib/public/Files/Search/ISearchOrder.php
index 817c7e3b5b4..fdcd53447f5 100644
--- a/lib/public/Files/Search/ISearchOrder.php
+++ b/lib/public/Files/Search/ISearchOrder.php
@@ -27,8 +27,8 @@ namespace OCP\Files\Search;
* @since 12.0.0
*/
interface ISearchOrder {
- const DIRECTION_ASCENDING = 'asc';
- const DIRECTION_DESCENDING = 'desc';
+ public const DIRECTION_ASCENDING = 'asc';
+ public const DIRECTION_DESCENDING = 'desc';
/**
* The direction to sort in, either ISearchOrder::DIRECTION_ASCENDING or ISearchOrder::DIRECTION_DESCENDING
diff --git a/lib/public/Files/Storage/INotifyStorage.php b/lib/public/Files/Storage/INotifyStorage.php
index 60893c2f636..f460201becb 100644
--- a/lib/public/Files/Storage/INotifyStorage.php
+++ b/lib/public/Files/Storage/INotifyStorage.php
@@ -31,10 +31,10 @@ use OCP\Files\Notify\INotifyHandler;
* @since 9.1.0
*/
interface INotifyStorage {
- const NOTIFY_ADDED = 1;
- const NOTIFY_REMOVED = 2;
- const NOTIFY_MODIFIED = 3;
- const NOTIFY_RENAMED = 4;
+ public const NOTIFY_ADDED = 1;
+ public const NOTIFY_REMOVED = 2;
+ public const NOTIFY_MODIFIED = 3;
+ public const NOTIFY_RENAMED = 4;
/**
* Start listening for update notifications
diff --git a/lib/public/Files/StorageNotAvailableException.php b/lib/public/Files/StorageNotAvailableException.php
index 1a0465bda13..c0592cfc5af 100644
--- a/lib/public/Files/StorageNotAvailableException.php
+++ b/lib/public/Files/StorageNotAvailableException.php
@@ -44,13 +44,13 @@ use OC\HintException;
* @since 6.0.0 - since 8.2.1 based on HintException
*/
class StorageNotAvailableException extends HintException {
- const STATUS_SUCCESS = 0;
- const STATUS_ERROR = 1;
- const STATUS_INDETERMINATE = 2;
- const STATUS_INCOMPLETE_CONF = 3;
- const STATUS_UNAUTHORIZED = 4;
- const STATUS_TIMEOUT = 5;
- const STATUS_NETWORK_ERROR = 6;
+ public const STATUS_SUCCESS = 0;
+ public const STATUS_ERROR = 1;
+ public const STATUS_INDETERMINATE = 2;
+ public const STATUS_INCOMPLETE_CONF = 3;
+ public const STATUS_UNAUTHORIZED = 4;
+ public const STATUS_TIMEOUT = 5;
+ public const STATUS_NETWORK_ERROR = 6;
/**
* StorageNotAvailableException constructor.