2014-02-18 09:07:03 -05:00
|
|
|
<?php
|
2024-05-23 03:26:56 -04:00
|
|
|
|
2014-02-18 09:07:03 -05:00
|
|
|
/**
|
2024-05-23 03:26:56 -04:00
|
|
|
* SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
|
* SPDX-FileCopyrightText: 2016 ownCloud, Inc.
|
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
2014-02-18 09:07:03 -05:00
|
|
|
*/
|
|
|
|
|
namespace OC\Share;
|
|
|
|
|
|
|
|
|
|
class Constants {
|
2020-04-10 10:54:27 -04:00
|
|
|
public const FORMAT_NONE = -1;
|
|
|
|
|
public const FORMAT_STATUSES = -2;
|
|
|
|
|
public const FORMAT_SOURCES = -3; // ToDo Check if it is still in use otherwise remove it
|
2014-02-18 09:07:03 -05:00
|
|
|
|
2022-07-27 08:51:42 -04:00
|
|
|
public const RESPONSE_FORMAT = 'json'; // default response format for ocs calls
|
2014-12-04 13:51:04 -05:00
|
|
|
|
2024-08-15 14:46:46 -04:00
|
|
|
public const MIN_TOKEN_LENGTH = 6; // 19,770,609,664 different possible variations
|
|
|
|
|
public const DEFAULT_TOKEN_LENGTH = 15; // 54,960,434,128,018,667,122,720,768 different possible variations
|
|
|
|
|
public const MAX_TOKEN_LENGTH = 32; // 8,167,835,760,036,914,488,254,418,108,462,708,901,695,678,621,570,564,096 different possible variations
|
|
|
|
|
public const TOKEN_LENGTH = self::DEFAULT_TOKEN_LENGTH; // old (oc7) length is 32, keep token length in db at least that for compatibility
|
2014-09-04 10:46:20 -04:00
|
|
|
|
2014-02-18 09:07:03 -05:00
|
|
|
protected static $shareTypeUserAndGroups = -1;
|
|
|
|
|
protected static $shareTypeGroupUserUnique = 2;
|
2020-03-26 04:30:18 -04:00
|
|
|
protected static $backends = [];
|
|
|
|
|
protected static $backendTypes = [];
|
2014-02-18 09:07:03 -05:00
|
|
|
protected static $isResharingAllowed;
|
|
|
|
|
}
|