diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Share/Constants.php | 2 | ||||
-rw-r--r-- | lib/private/Share20/Manager.php | 1 | ||||
-rw-r--r-- | lib/private/Share20/ProviderFactory.php | 2 | ||||
-rw-r--r-- | lib/public/Share/IShare.php | 5 |
4 files changed, 10 insertions, 0 deletions
diff --git a/lib/private/Share/Constants.php b/lib/private/Share/Constants.php index 03c4c2ba828..0c8fad17e07 100644 --- a/lib/private/Share/Constants.php +++ b/lib/private/Share/Constants.php @@ -74,6 +74,8 @@ class Constants { public const SHARE_TYPE_DECK = 12; // const SHARE_TYPE_DECK_USER = 13; // Internal type used by DeckShareProvider + // Note to developers: Do not add new share types here + 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 diff --git a/lib/private/Share20/Manager.php b/lib/private/Share20/Manager.php index 7fd99545668..f84ed1671ba 100644 --- a/lib/private/Share20/Manager.php +++ b/lib/private/Share20/Manager.php @@ -244,6 +244,7 @@ class Manager implements IManager { } } elseif ($share->getShareType() === IShare::TYPE_ROOM) { } elseif ($share->getShareType() === IShare::TYPE_DECK) { + } elseif ($share->getShareType() === IShare::TYPE_SCIENCEMESH) { } else { // We cannot handle other types yet throw new \InvalidArgumentException('unknown share type'); diff --git a/lib/private/Share20/ProviderFactory.php b/lib/private/Share20/ProviderFactory.php index 16f9a17ee42..6abfb372a4d 100644 --- a/lib/private/Share20/ProviderFactory.php +++ b/lib/private/Share20/ProviderFactory.php @@ -340,6 +340,8 @@ class ProviderFactory implements IProviderFactory { $provider = $this->getRoomShareProvider(); } elseif ($shareType === IShare::TYPE_DECK) { $provider = $this->getProvider('deck'); + } elseif ($shareType === IShare::TYPE_SCIENCEMESH) { + $provider = $this->getProvider('sciencemesh'); } diff --git a/lib/public/Share/IShare.php b/lib/public/Share/IShare.php index f8f75be4c41..40548c6c73d 100644 --- a/lib/public/Share/IShare.php +++ b/lib/public/Share/IShare.php @@ -118,6 +118,11 @@ interface IShare { public const TYPE_DECK_USER = 13; /** + * @since 26.0.0 + */ + public const TYPE_SCIENCEMESH = 15; + + /** * @since 18.0.0 */ public const STATUS_PENDING = 0; |