From 6b88d56e3aa94012dcaf9e5240b885b4e545efc6 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Wed, 16 Nov 2016 09:29:27 +0100 Subject: [PATCH] Update the since version to 11.0.0 Signed-off-by: Joas Schilling --- apps/files/lib/Activity/Filter/Favorites.php | 12 +++---- .../files/lib/Activity/Filter/FileChanges.php | 12 +++---- apps/files/lib/Activity/Provider.php | 6 ++-- .../lib/Activity/Settings/FileChanged.php | 14 ++++---- .../lib/Activity/Settings/FileCreated.php | 14 ++++---- .../lib/Activity/Settings/FileDeleted.php | 14 ++++---- .../lib/Activity/Settings/FileFavorite.php | 14 ++++---- .../lib/Activity/Settings/FileRestored.php | 14 ++++---- lib/private/Activity/Event.php | 28 ++++++++-------- lib/private/Activity/LegacyFilter.php | 12 +++---- lib/private/Activity/LegacySetting.php | 14 ++++---- lib/private/Activity/Manager.php | 16 +++++----- lib/public/Activity/IEvent.php | 32 +++++++++---------- lib/public/Activity/IExtension.php | 8 ++--- lib/public/Activity/IFilter.php | 14 ++++---- lib/public/Activity/IManager.php | 28 ++++++++-------- lib/public/Activity/IProvider.php | 4 +-- lib/public/Activity/ISetting.php | 16 +++++----- 18 files changed, 136 insertions(+), 136 deletions(-) diff --git a/apps/files/lib/Activity/Filter/Favorites.php b/apps/files/lib/Activity/Filter/Favorites.php index 955e56f833..2639ae847f 100644 --- a/apps/files/lib/Activity/Filter/Favorites.php +++ b/apps/files/lib/Activity/Filter/Favorites.php @@ -64,7 +64,7 @@ class Favorites implements IFilter { /** * @return string Lowercase a-z only identifier - * @since 9.2.0 + * @since 11.0.0 */ public function getIdentifier() { return 'files_favorites'; @@ -72,7 +72,7 @@ class Favorites implements IFilter { /** * @return string A translated string - * @since 9.2.0 + * @since 11.0.0 */ public function getName() { return $this->l->t('Favorites'); @@ -80,7 +80,7 @@ class Favorites implements IFilter { /** * @return int - * @since 9.2.0 + * @since 11.0.0 */ public function getPriority() { return 10; @@ -88,7 +88,7 @@ class Favorites implements IFilter { /** * @return string Full URL to an icon, empty string when none is given - * @since 9.2.0 + * @since 11.0.0 */ public function getIcon() { return $this->url->getAbsoluteURL($this->url->imagePath('core', 'actions/star-dark.svg')); @@ -97,7 +97,7 @@ class Favorites implements IFilter { /** * @param string[] $types * @return string[] An array of allowed apps from which activities should be displayed - * @since 9.2.0 + * @since 11.0.0 */ public function filterTypes(array $types) { return array_intersect([ @@ -110,7 +110,7 @@ class Favorites implements IFilter { /** * @return string[] An array of allowed apps from which activities should be displayed - * @since 9.2.0 + * @since 11.0.0 */ public function allowedApps() { return ['files']; diff --git a/apps/files/lib/Activity/Filter/FileChanges.php b/apps/files/lib/Activity/Filter/FileChanges.php index 2c1807fcd5..dc7daf96ba 100644 --- a/apps/files/lib/Activity/Filter/FileChanges.php +++ b/apps/files/lib/Activity/Filter/FileChanges.php @@ -41,7 +41,7 @@ class FileChanges implements IFilter { /** * @return string Lowercase a-z only identifier - * @since 9.2.0 + * @since 11.0.0 */ public function getIdentifier() { return 'files'; @@ -49,7 +49,7 @@ class FileChanges implements IFilter { /** * @return string A translated string - * @since 9.2.0 + * @since 11.0.0 */ public function getName() { return $this->l->t('File changes'); @@ -57,7 +57,7 @@ class FileChanges implements IFilter { /** * @return int - * @since 9.2.0 + * @since 11.0.0 */ public function getPriority() { return 30; @@ -65,7 +65,7 @@ class FileChanges implements IFilter { /** * @return string Full URL to an icon, empty string when none is given - * @since 9.2.0 + * @since 11.0.0 */ public function getIcon() { return $this->url->getAbsoluteURL($this->url->imagePath('core', 'places/files-dark.svg')); @@ -74,7 +74,7 @@ class FileChanges implements IFilter { /** * @param string[] $types * @return string[] An array of allowed apps from which activities should be displayed - * @since 9.2.0 + * @since 11.0.0 */ public function filterTypes(array $types) { return array_intersect([ @@ -87,7 +87,7 @@ class FileChanges implements IFilter { /** * @return string[] An array of allowed apps from which activities should be displayed - * @since 9.2.0 + * @since 11.0.0 */ public function allowedApps() { return ['files']; diff --git a/apps/files/lib/Activity/Provider.php b/apps/files/lib/Activity/Provider.php index f186de60e9..e95522a7d0 100644 --- a/apps/files/lib/Activity/Provider.php +++ b/apps/files/lib/Activity/Provider.php @@ -55,7 +55,7 @@ class Provider implements IProvider { * @param IEvent|null $previousEvent * @return IEvent * @throws \InvalidArgumentException - * @since 9.2.0 + * @since 11.0.0 */ public function parse(IEvent $event, IEvent $previousEvent = null) { if ($event->getApp() !== 'files') { @@ -82,7 +82,7 @@ class Provider implements IProvider { * @param IEvent $event * @return IEvent * @throws \InvalidArgumentException - * @since 9.2.0 + * @since 11.0.0 */ public function parseShortVersion(IEvent $event) { $parsedParameters = $this->getParsedParameters($event->getSubject(), $event->getSubjectParameters()); @@ -122,7 +122,7 @@ class Provider implements IProvider { * @param IEvent $event * @return IEvent * @throws \InvalidArgumentException - * @since 9.2.0 + * @since 11.0.0 */ public function parseLongVersion(IEvent $event) { $parsedParameters = $this->getParsedParameters($event->getSubject(), $event->getSubjectParameters()); diff --git a/apps/files/lib/Activity/Settings/FileChanged.php b/apps/files/lib/Activity/Settings/FileChanged.php index d0ff69faf5..1c20fb6f01 100644 --- a/apps/files/lib/Activity/Settings/FileChanged.php +++ b/apps/files/lib/Activity/Settings/FileChanged.php @@ -39,7 +39,7 @@ class FileChanged implements ISetting { /** * @return string Lowercase a-z and underscore only identifier - * @since 9.2.0 + * @since 11.0.0 */ public function getIdentifier() { return 'file_changed'; @@ -47,7 +47,7 @@ class FileChanged implements ISetting { /** * @return string A translated string - * @since 9.2.0 + * @since 11.0.0 */ public function getName() { return $this->l->t('A file or folder has been changed or renamed'); @@ -57,7 +57,7 @@ class FileChanged implements ISetting { * @return int whether the filter should be rather on the top or bottom of * the admin section. The filters are arranged in ascending order of the * priority values. It is required to return a value between 0 and 100. - * @since 9.2.0 + * @since 11.0.0 */ public function getPriority() { return 1; @@ -65,7 +65,7 @@ class FileChanged implements ISetting { /** * @return bool True when the option can be changed for the stream - * @since 9.2.0 + * @since 11.0.0 */ public function canChangeStream() { return true; @@ -73,7 +73,7 @@ class FileChanged implements ISetting { /** * @return bool True when the option can be changed for the stream - * @since 9.2.0 + * @since 11.0.0 */ public function isDefaultEnabledStream() { return true; @@ -81,7 +81,7 @@ class FileChanged implements ISetting { /** * @return bool True when the option can be changed for the mail - * @since 9.2.0 + * @since 11.0.0 */ public function canChangeMail() { return true; @@ -89,7 +89,7 @@ class FileChanged implements ISetting { /** * @return bool True when the option can be changed for the stream - * @since 9.2.0 + * @since 11.0.0 */ public function isDefaultEnabledMail() { return false; diff --git a/apps/files/lib/Activity/Settings/FileCreated.php b/apps/files/lib/Activity/Settings/FileCreated.php index e0ae23a5fe..dfde00ae7e 100644 --- a/apps/files/lib/Activity/Settings/FileCreated.php +++ b/apps/files/lib/Activity/Settings/FileCreated.php @@ -39,7 +39,7 @@ class FileCreated implements ISetting { /** * @return string Lowercase a-z and underscore only identifier - * @since 9.2.0 + * @since 11.0.0 */ public function getIdentifier() { return 'file_created'; @@ -47,7 +47,7 @@ class FileCreated implements ISetting { /** * @return string A translated string - * @since 9.2.0 + * @since 11.0.0 */ public function getName() { return $this->l->t('A new file or folder has been created'); @@ -57,7 +57,7 @@ class FileCreated implements ISetting { * @return int whether the filter should be rather on the top or bottom of * the admin section. The filters are arranged in ascending order of the * priority values. It is required to return a value between 0 and 100. - * @since 9.2.0 + * @since 11.0.0 */ public function getPriority() { return 0; @@ -65,7 +65,7 @@ class FileCreated implements ISetting { /** * @return bool True when the option can be changed for the stream - * @since 9.2.0 + * @since 11.0.0 */ public function canChangeStream() { return true; @@ -73,7 +73,7 @@ class FileCreated implements ISetting { /** * @return bool True when the option can be changed for the stream - * @since 9.2.0 + * @since 11.0.0 */ public function isDefaultEnabledStream() { return true; @@ -81,7 +81,7 @@ class FileCreated implements ISetting { /** * @return bool True when the option can be changed for the mail - * @since 9.2.0 + * @since 11.0.0 */ public function canChangeMail() { return true; @@ -89,7 +89,7 @@ class FileCreated implements ISetting { /** * @return bool True when the option can be changed for the stream - * @since 9.2.0 + * @since 11.0.0 */ public function isDefaultEnabledMail() { return false; diff --git a/apps/files/lib/Activity/Settings/FileDeleted.php b/apps/files/lib/Activity/Settings/FileDeleted.php index 9378186fab..c4948ded2f 100644 --- a/apps/files/lib/Activity/Settings/FileDeleted.php +++ b/apps/files/lib/Activity/Settings/FileDeleted.php @@ -39,7 +39,7 @@ class FileDeleted implements ISetting { /** * @return string Lowercase a-z and underscore only identifier - * @since 9.2.0 + * @since 11.0.0 */ public function getIdentifier() { return 'file_deleted'; @@ -47,7 +47,7 @@ class FileDeleted implements ISetting { /** * @return string A translated string - * @since 9.2.0 + * @since 11.0.0 */ public function getName() { return $this->l->t('A new file or folder has been deleted'); @@ -57,7 +57,7 @@ class FileDeleted implements ISetting { * @return int whether the filter should be rather on the top or bottom of * the admin section. The filters are arranged in ascending order of the * priority values. It is required to return a value between 0 and 100. - * @since 9.2.0 + * @since 11.0.0 */ public function getPriority() { return 3; @@ -65,7 +65,7 @@ class FileDeleted implements ISetting { /** * @return bool True when the option can be changed for the stream - * @since 9.2.0 + * @since 11.0.0 */ public function canChangeStream() { return true; @@ -73,7 +73,7 @@ class FileDeleted implements ISetting { /** * @return bool True when the option can be changed for the stream - * @since 9.2.0 + * @since 11.0.0 */ public function isDefaultEnabledStream() { return true; @@ -81,7 +81,7 @@ class FileDeleted implements ISetting { /** * @return bool True when the option can be changed for the mail - * @since 9.2.0 + * @since 11.0.0 */ public function canChangeMail() { return true; @@ -89,7 +89,7 @@ class FileDeleted implements ISetting { /** * @return bool True when the option can be changed for the stream - * @since 9.2.0 + * @since 11.0.0 */ public function isDefaultEnabledMail() { return false; diff --git a/apps/files/lib/Activity/Settings/FileFavorite.php b/apps/files/lib/Activity/Settings/FileFavorite.php index 00ac41b8e8..b2f20688df 100644 --- a/apps/files/lib/Activity/Settings/FileFavorite.php +++ b/apps/files/lib/Activity/Settings/FileFavorite.php @@ -39,7 +39,7 @@ class FileFavorite implements ISetting { /** * @return string Lowercase a-z and underscore only identifier - * @since 9.2.0 + * @since 11.0.0 */ public function getIdentifier() { return 'file_favorite'; @@ -47,7 +47,7 @@ class FileFavorite implements ISetting { /** * @return string A translated string - * @since 9.2.0 + * @since 11.0.0 */ public function getName() { return $this->l->t('Limit notifications about creation and changes to your favorite files (Stream only)'); @@ -57,7 +57,7 @@ class FileFavorite implements ISetting { * @return int whether the filter should be rather on the top or bottom of * the admin section. The filters are arranged in ascending order of the * priority values. It is required to return a value between 0 and 100. - * @since 9.2.0 + * @since 11.0.0 */ public function getPriority() { return 2; @@ -65,7 +65,7 @@ class FileFavorite implements ISetting { /** * @return bool True when the option can be changed for the stream - * @since 9.2.0 + * @since 11.0.0 */ public function canChangeStream() { return true; @@ -73,7 +73,7 @@ class FileFavorite implements ISetting { /** * @return bool True when the option can be changed for the stream - * @since 9.2.0 + * @since 11.0.0 */ public function isDefaultEnabledStream() { return false; @@ -81,7 +81,7 @@ class FileFavorite implements ISetting { /** * @return bool True when the option can be changed for the mail - * @since 9.2.0 + * @since 11.0.0 */ public function canChangeMail() { return false; @@ -89,7 +89,7 @@ class FileFavorite implements ISetting { /** * @return bool True when the option can be changed for the stream - * @since 9.2.0 + * @since 11.0.0 */ public function isDefaultEnabledMail() { return false; diff --git a/apps/files/lib/Activity/Settings/FileRestored.php b/apps/files/lib/Activity/Settings/FileRestored.php index bc6ec17125..cedfef441e 100644 --- a/apps/files/lib/Activity/Settings/FileRestored.php +++ b/apps/files/lib/Activity/Settings/FileRestored.php @@ -39,7 +39,7 @@ class FileRestored implements ISetting { /** * @return string Lowercase a-z and underscore only identifier - * @since 9.2.0 + * @since 11.0.0 */ public function getIdentifier() { return 'file_restored'; @@ -47,7 +47,7 @@ class FileRestored implements ISetting { /** * @return string A translated string - * @since 9.2.0 + * @since 11.0.0 */ public function getName() { return $this->l->t('A new file or folder has been restored'); @@ -57,7 +57,7 @@ class FileRestored implements ISetting { * @return int whether the filter should be rather on the top or bottom of * the admin section. The filters are arranged in ascending order of the * priority values. It is required to return a value between 0 and 100. - * @since 9.2.0 + * @since 11.0.0 */ public function getPriority() { return 4; @@ -65,7 +65,7 @@ class FileRestored implements ISetting { /** * @return bool True when the option can be changed for the stream - * @since 9.2.0 + * @since 11.0.0 */ public function canChangeStream() { return true; @@ -73,7 +73,7 @@ class FileRestored implements ISetting { /** * @return bool True when the option can be changed for the stream - * @since 9.2.0 + * @since 11.0.0 */ public function isDefaultEnabledStream() { return true; @@ -81,7 +81,7 @@ class FileRestored implements ISetting { /** * @return bool True when the option can be changed for the mail - * @since 9.2.0 + * @since 11.0.0 */ public function canChangeMail() { return true; @@ -89,7 +89,7 @@ class FileRestored implements ISetting { /** * @return bool True when the option can be changed for the stream - * @since 9.2.0 + * @since 11.0.0 */ public function isDefaultEnabledMail() { return false; diff --git a/lib/private/Activity/Event.php b/lib/private/Activity/Event.php index 16c65c2085..df6756940a 100644 --- a/lib/private/Activity/Event.php +++ b/lib/private/Activity/Event.php @@ -233,7 +233,7 @@ class Event implements IEvent { * @param string $subject * @return $this * @throws \InvalidArgumentException if the subject is invalid - * @since 9.2.0 + * @since 11.0.0 */ public function setParsedSubject($subject) { if (!is_string($subject) || $subject === '') { @@ -245,7 +245,7 @@ class Event implements IEvent { /** * @return string - * @since 9.2.0 + * @since 11.0.0 */ public function getParsedSubject() { return $this->subjectParsed; @@ -256,7 +256,7 @@ class Event implements IEvent { * @param array $parameters * @return $this * @throws \InvalidArgumentException if the subject or parameters are invalid - * @since 9.2.0 + * @since 11.0.0 */ public function setRichSubject($subject, array $parameters = []) { if (!is_string($subject) || $subject === '') { @@ -274,7 +274,7 @@ class Event implements IEvent { /** * @return string - * @since 9.2.0 + * @since 11.0.0 */ public function getRichSubject() { return $this->subjectRich; @@ -282,7 +282,7 @@ class Event implements IEvent { /** * @return array[] - * @since 9.2.0 + * @since 11.0.0 */ public function getRichSubjectParameters() { return $this->subjectRichParameters; @@ -324,7 +324,7 @@ class Event implements IEvent { * @param string $message * @return $this * @throws \InvalidArgumentException if the message is invalid - * @since 9.2.0 + * @since 11.0.0 */ public function setParsedMessage($message) { if (!is_string($message)) { @@ -336,7 +336,7 @@ class Event implements IEvent { /** * @return string - * @since 9.2.0 + * @since 11.0.0 */ public function getParsedMessage() { return $this->messageParsed; @@ -347,7 +347,7 @@ class Event implements IEvent { * @param array $parameters * @return $this * @throws \InvalidArgumentException if the subject or parameters are invalid - * @since 9.2.0 + * @since 11.0.0 */ public function setRichMessage($message, array $parameters = []) { if (!is_string($message)) { @@ -365,7 +365,7 @@ class Event implements IEvent { /** * @return string - * @since 9.2.0 + * @since 11.0.0 */ public function getRichMessage() { return $this->messageRich; @@ -373,7 +373,7 @@ class Event implements IEvent { /** * @return array[] - * @since 9.2.0 + * @since 11.0.0 */ public function getRichMessageParameters() { return $this->messageRichParameters; @@ -453,7 +453,7 @@ class Event implements IEvent { * @param string $icon * @return $this * @throws \InvalidArgumentException if the icon is invalid - * @since 9.2.0 + * @since 11.0.0 */ public function setIcon($icon) { if (!is_string($icon) || isset($icon[4000])) { @@ -465,7 +465,7 @@ class Event implements IEvent { /** * @return string - * @since 9.2.0 + * @since 11.0.0 */ public function getIcon() { return $this->icon; @@ -473,7 +473,7 @@ class Event implements IEvent { /** * @param IEvent $child - * @since 9.2.0 + * @since 11.0.0 */ public function setChildEvent(IEvent $child) { $this->child = $child; @@ -481,7 +481,7 @@ class Event implements IEvent { /** * @return IEvent|null - * @since 9.2.0 + * @since 11.0.0 */ public function getChildEvent() { return $this->child; diff --git a/lib/private/Activity/LegacyFilter.php b/lib/private/Activity/LegacyFilter.php index 4641151245..eadb5b1558 100644 --- a/lib/private/Activity/LegacyFilter.php +++ b/lib/private/Activity/LegacyFilter.php @@ -55,7 +55,7 @@ class LegacyFilter implements IFilter { /** * @return string Lowercase a-z and underscore only identifier - * @since 9.2.0 + * @since 11.0.0 */ public function getIdentifier() { return $this->identifier; @@ -63,7 +63,7 @@ class LegacyFilter implements IFilter { /** * @return string A translated string - * @since 9.2.0 + * @since 11.0.0 */ public function getName() { return $this->name; @@ -73,7 +73,7 @@ class LegacyFilter implements IFilter { * @return int whether the filter should be rather on the top or bottom of * the admin section. The filters are arranged in ascending order of the * priority values. It is required to return a value between 0 and 100. - * @since 9.2.0 + * @since 11.0.0 */ public function getPriority() { return $this->isTopFilter ? 40 : 50; @@ -81,7 +81,7 @@ class LegacyFilter implements IFilter { /** * @return string Full URL to an icon, empty string when none is given - * @since 9.2.0 + * @since 11.0.0 */ public function getIcon() { // Old API was CSS class, so we can not use this... @@ -91,7 +91,7 @@ class LegacyFilter implements IFilter { /** * @param string[] $types * @return string[] An array of allowed apps from which activities should be displayed - * @since 9.2.0 + * @since 11.0.0 */ public function filterTypes(array $types) { return $this->manager->filterNotificationTypes($types, $this->getIdentifier()); @@ -99,7 +99,7 @@ class LegacyFilter implements IFilter { /** * @return string[] An array of allowed apps from which activities should be displayed - * @since 9.2.0 + * @since 11.0.0 */ public function allowedApps() { return []; diff --git a/lib/private/Activity/LegacySetting.php b/lib/private/Activity/LegacySetting.php index eb65e68fd4..27495afddb 100644 --- a/lib/private/Activity/LegacySetting.php +++ b/lib/private/Activity/LegacySetting.php @@ -64,7 +64,7 @@ class LegacySetting implements ISetting { /** * @return string Lowercase a-z and underscore only identifier - * @since 9.2.0 + * @since 11.0.0 */ public function getIdentifier() { return $this->identifier; @@ -72,7 +72,7 @@ class LegacySetting implements ISetting { /** * @return string A translated string - * @since 9.2.0 + * @since 11.0.0 */ public function getName() { return $this->name; @@ -82,7 +82,7 @@ class LegacySetting implements ISetting { * @return int whether the filter should be rather on the top or bottom of * the admin section. The filters are arranged in ascending order of the * priority values. It is required to return a value between 0 and 100. - * @since 9.2.0 + * @since 11.0.0 */ public function getPriority() { return 70; @@ -90,7 +90,7 @@ class LegacySetting implements ISetting { /** * @return bool True when the option can be changed for the stream - * @since 9.2.0 + * @since 11.0.0 */ public function canChangeStream() { return $this->canChangeStream; @@ -98,7 +98,7 @@ class LegacySetting implements ISetting { /** * @return bool True when the option can be changed for the stream - * @since 9.2.0 + * @since 11.0.0 */ public function isDefaultEnabledStream() { return $this->isDefaultEnabledStream; @@ -106,7 +106,7 @@ class LegacySetting implements ISetting { /** * @return bool True when the option can be changed for the mail - * @since 9.2.0 + * @since 11.0.0 */ public function canChangeMail() { return $this->canChangeMail; @@ -114,7 +114,7 @@ class LegacySetting implements ISetting { /** * @return bool True when the option can be changed for the stream - * @since 9.2.0 + * @since 11.0.0 */ public function isDefaultEnabledMail() { return $this->isDefaultEnabledMail; diff --git a/lib/private/Activity/Manager.php b/lib/private/Activity/Manager.php index 9c1629d79c..805124dc60 100644 --- a/lib/private/Activity/Manager.php +++ b/lib/private/Activity/Manager.php @@ -301,7 +301,7 @@ class Manager implements IManager { * @param string $id * @return IFilter * @throws \InvalidArgumentException when the filter was not found - * @since 9.2.0 + * @since 11.0.0 */ public function getFilterById($id) { $filters = $this->getFilters(); @@ -413,7 +413,7 @@ class Manager implements IManager { * @param string $id * @return ISetting * @throws \InvalidArgumentException when the setting was not found - * @since 9.2.0 + * @since 11.0.0 */ public function getSettingById($id) { $settings = $this->getSettings(); @@ -581,7 +581,7 @@ class Manager implements IManager { /** * @return array - * @deprecated 9.2.0 - Use getFilters() instead + * @deprecated 11.0.0 - Use getFilters() instead */ public function getNavigation() { $entries = array( @@ -602,7 +602,7 @@ class Manager implements IManager { /** * @param string $filterValue * @return boolean - * @deprecated 9.2.0 - Use getFilterById() instead + * @deprecated 11.0.0 - Use getFilterById() instead */ public function isFilterValid($filterValue) { if (isset($this->validFilters[$filterValue])) { @@ -624,7 +624,7 @@ class Manager implements IManager { * @param array $types * @param string $filter * @return array - * @deprecated 9.2.0 - Use getFilterById()->filterTypes() instead + * @deprecated 11.0.0 - Use getFilterById()->filterTypes() instead */ public function filterNotificationTypes($types, $filter) { if (!$this->isFilterValid($filter)) { @@ -643,7 +643,7 @@ class Manager implements IManager { /** * @param string $filter * @return array - * @deprecated 9.2.0 - Use getFilterById() instead + * @deprecated 11.0.0 - Use getFilterById() instead */ public function getQueryForFilter($filter) { if (!$this->isFilterValid($filter)) { @@ -676,7 +676,7 @@ class Manager implements IManager { * * @param string $languageCode * @return array - * @deprecated 9.2.0 - Use getSettings() instead + * @deprecated 11.0.0 - Use getSettings() instead */ public function getNotificationTypes($languageCode) { $notificationTypes = $sharingNotificationTypes = []; @@ -698,7 +698,7 @@ class Manager implements IManager { /** * @param string $method * @return array - * @deprecated 9.2.0 - Use getSettings()->isDefaulEnabled() instead + * @deprecated 11.0.0 - Use getSettings()->isDefaulEnabled() instead */ public function getDefaultTypes($method) { $defaultTypes = array(); diff --git a/lib/public/Activity/IEvent.php b/lib/public/Activity/IEvent.php index c4becf54a7..a12ba8642a 100644 --- a/lib/public/Activity/IEvent.php +++ b/lib/public/Activity/IEvent.php @@ -101,13 +101,13 @@ interface IEvent { * @param string $subject * @return $this * @throws \InvalidArgumentException if the subject is invalid - * @since 9.2.0 + * @since 11.0.0 */ public function setParsedSubject($subject); /** * @return string - * @since 9.2.0 + * @since 11.0.0 */ public function getParsedSubject(); @@ -116,19 +116,19 @@ interface IEvent { * @param array $parameters * @return $this * @throws \InvalidArgumentException if the subject or parameters are invalid - * @since 9.2.0 + * @since 11.0.0 */ public function setRichSubject($subject, array $parameters = []); /** * @return string - * @since 9.2.0 + * @since 11.0.0 */ public function getRichSubject(); /** * @return array[] - * @since 9.2.0 + * @since 11.0.0 */ public function getRichSubjectParameters(); @@ -147,13 +147,13 @@ interface IEvent { * @param string $message * @return $this * @throws \InvalidArgumentException if the message is invalid - * @since 9.2.0 + * @since 11.0.0 */ public function setParsedMessage($message); /** * @return string - * @since 9.2.0 + * @since 11.0.0 */ public function getParsedMessage(); @@ -162,19 +162,19 @@ interface IEvent { * @param array $parameters * @return $this * @throws \InvalidArgumentException if the message or parameters are invalid - * @since 9.2.0 + * @since 11.0.0 */ public function setRichMessage($message, array $parameters = []); /** * @return string - * @since 9.2.0 + * @since 11.0.0 */ public function getRichMessage(); /** * @return array[] - * @since 9.2.0 + * @since 11.0.0 */ public function getRichMessageParameters(); @@ -282,37 +282,37 @@ interface IEvent { * @param string $icon * @return $this * @throws \InvalidArgumentException if the icon is invalid - * @since 9.2.0 + * @since 11.0.0 */ public function setIcon($icon); /** * @return string - * @since 9.2.0 + * @since 11.0.0 */ public function getIcon(); /** * @param IEvent $child - * @since 9.2.0 + * @since 11.0.0 */ public function setChildEvent(IEvent $child); /** * @return IEvent|null - * @since 9.2.0 + * @since 11.0.0 */ public function getChildEvent(); /** * @return bool - * @since 9.2.0 + * @since 11.0.0 */ public function isValid(); /** * @return bool - * @since 9.2.0 + * @since 11.0.0 */ public function isValidParsed(); } diff --git a/lib/public/Activity/IExtension.php b/lib/public/Activity/IExtension.php index 21d1bd150a..3f605a47e4 100644 --- a/lib/public/Activity/IExtension.php +++ b/lib/public/Activity/IExtension.php @@ -129,7 +129,7 @@ interface IExtension { * * @return array|false * @since 8.0.0 - * @deprecated 9.2.0 - Register an IFilter instead + * @deprecated 11.0.0 - Register an IFilter instead */ public function getNavigation(); @@ -139,7 +139,7 @@ interface IExtension { * @param string $filterValue * @return boolean * @since 8.0.0 - * @deprecated 9.2.0 - Register an IFilter instead + * @deprecated 11.0.0 - Register an IFilter instead */ public function isFilterValid($filterValue); @@ -151,7 +151,7 @@ interface IExtension { * @param string $filter * @return array|false * @since 8.0.0 - * @deprecated 9.2.0 - Register an IFilter instead + * @deprecated 11.0.0 - Register an IFilter instead */ public function filterNotificationTypes($types, $filter); @@ -164,7 +164,7 @@ interface IExtension { * @param string $filter * @return array|false * @since 8.0.0 - * @deprecated 9.2.0 - Register an IFilter instead + * @deprecated 11.0.0 - Register an IFilter instead */ public function getQueryForFilter($filter); } diff --git a/lib/public/Activity/IFilter.php b/lib/public/Activity/IFilter.php index f3c57c14e9..e5b65a7d91 100644 --- a/lib/public/Activity/IFilter.php +++ b/lib/public/Activity/IFilter.php @@ -28,19 +28,19 @@ namespace OCP\Activity; * Interface IFilter * * @package OCP\Activity - * @since 9.2.0 + * @since 11.0.0 */ interface IFilter { /** * @return string Lowercase a-z and underscore only identifier - * @since 9.2.0 + * @since 11.0.0 */ public function getIdentifier(); /** * @return string A translated string - * @since 9.2.0 + * @since 11.0.0 */ public function getName(); @@ -48,26 +48,26 @@ interface IFilter { * @return int whether the filter should be rather on the top or bottom of * the admin section. The filters are arranged in ascending order of the * priority values. It is required to return a value between 0 and 100. - * @since 9.2.0 + * @since 11.0.0 */ public function getPriority(); /** * @return string Full URL to an icon, empty string when none is given - * @since 9.2.0 + * @since 11.0.0 */ public function getIcon(); /** * @param string[] $types * @return string[] An array of allowed apps from which activities should be displayed - * @since 9.2.0 + * @since 11.0.0 */ public function filterTypes(array $types); /** * @return string[] An array of allowed apps from which activities should be displayed - * @since 9.2.0 + * @since 11.0.0 */ public function allowedApps(); } diff --git a/lib/public/Activity/IManager.php b/lib/public/Activity/IManager.php index abad12f15f..2fe38ddb8d 100644 --- a/lib/public/Activity/IManager.php +++ b/lib/public/Activity/IManager.php @@ -111,13 +111,13 @@ interface IManager { /** * @param string $filter Class must implement OCA\Activity\IFilter * @return void - * @since 9.2.0 + * @since 11.0.0 */ public function registerFilter($filter); /** * @return IFilter[] - * @since 9.2.0 + * @since 11.0.0 */ public function getFilters(); @@ -125,33 +125,33 @@ interface IManager { * @param string $id * @return IFilter * @throws \InvalidArgumentException when the filter was not found - * @since 9.2.0 + * @since 11.0.0 */ public function getFilterById($id); /** * @param string $setting Class must implement OCA\Activity\ISetting * @return void - * @since 9.2.0 + * @since 11.0.0 */ public function registerSetting($setting); /** * @return ISetting[] - * @since 9.2.0 + * @since 11.0.0 */ public function getSettings(); /** * @param string $provider Class must implement OCA\Activity\IProvider * @return void - * @since 9.2.0 + * @since 11.0.0 */ public function registerProvider($provider); /** * @return IProvider[] - * @since 9.2.0 + * @since 11.0.0 */ public function getProviders(); @@ -159,7 +159,7 @@ interface IManager { * @param string $id * @return ISetting * @throws \InvalidArgumentException when the setting was not found - * @since 9.2.0 + * @since 11.0.0 */ public function getSettingById($id); @@ -173,7 +173,7 @@ interface IManager { * 'methods' => [\OCP\Activity\IExtension::METHOD_*], * ] * @since 8.0.0 - 8.2.0: Added support to allow limiting notifications to certain methods - * @deprecated 9.2.0 - Use getSettings() instead + * @deprecated 11.0.0 - Use getSettings() instead */ public function getNotificationTypes($languageCode); @@ -181,7 +181,7 @@ interface IManager { * @param string $method * @return array * @since 8.0.0 - * @deprecated 9.2.0 - Use getSettings()->isDefaulEnabled() instead + * @deprecated 11.0.0 - Use getSettings()->isDefaulEnabled() instead */ public function getDefaultTypes($method); @@ -256,7 +256,7 @@ interface IManager { /** * @return array * @since 8.0.0 - * @deprecated 9.2.0 - Use getFilters() instead + * @deprecated 11.0.0 - Use getFilters() instead */ public function getNavigation(); @@ -264,7 +264,7 @@ interface IManager { * @param string $filterValue * @return boolean * @since 8.0.0 - * @deprecated 9.2.0 - Use getFilterById() instead + * @deprecated 11.0.0 - Use getFilterById() instead */ public function isFilterValid($filterValue); @@ -273,7 +273,7 @@ interface IManager { * @param string $filter * @return array * @since 8.0.0 - * @deprecated 9.2.0 - Use getFilterById()->filterTypes() instead + * @deprecated 11.0.0 - Use getFilterById()->filterTypes() instead */ public function filterNotificationTypes($types, $filter); @@ -281,7 +281,7 @@ interface IManager { * @param string $filter * @return array * @since 8.0.0 - * @deprecated 9.2.0 - Use getFilterById() instead + * @deprecated 11.0.0 - Use getFilterById() instead */ public function getQueryForFilter($filter); } diff --git a/lib/public/Activity/IProvider.php b/lib/public/Activity/IProvider.php index 6e4b9b1627..5b78e26f4b 100644 --- a/lib/public/Activity/IProvider.php +++ b/lib/public/Activity/IProvider.php @@ -25,7 +25,7 @@ namespace OCP\Activity; * Interface IProvider * * @package OCP\Activity - * @since 9.2.0 + * @since 11.0.0 */ interface IProvider { /** @@ -33,7 +33,7 @@ interface IProvider { * @param IEvent|null $previousEvent * @return IEvent * @throws \InvalidArgumentException - * @since 9.2.0 + * @since 11.0.0 */ public function parse(IEvent $event, IEvent $previousEvent = null); } diff --git a/lib/public/Activity/ISetting.php b/lib/public/Activity/ISetting.php index b90616e825..786581bcae 100644 --- a/lib/public/Activity/ISetting.php +++ b/lib/public/Activity/ISetting.php @@ -25,19 +25,19 @@ namespace OCP\Activity; * Interface ISetting * * @package OCP\Activity - * @since 9.2.0 + * @since 11.0.0 */ interface ISetting { /** * @return string Lowercase a-z and underscore only identifier - * @since 9.2.0 + * @since 11.0.0 */ public function getIdentifier(); /** * @return string A translated string - * @since 9.2.0 + * @since 11.0.0 */ public function getName(); @@ -45,31 +45,31 @@ interface ISetting { * @return int whether the filter should be rather on the top or bottom of * the admin section. The filters are arranged in ascending order of the * priority values. It is required to return a value between 0 and 100. - * @since 9.2.0 + * @since 11.0.0 */ public function getPriority(); /** * @return bool True when the option can be changed for the stream - * @since 9.2.0 + * @since 11.0.0 */ public function canChangeStream(); /** * @return bool True when the option can be changed for the stream - * @since 9.2.0 + * @since 11.0.0 */ public function isDefaultEnabledStream(); /** * @return bool True when the option can be changed for the mail - * @since 9.2.0 + * @since 11.0.0 */ public function canChangeMail(); /** * @return bool True when the option can be changed for the stream - * @since 9.2.0 + * @since 11.0.0 */ public function isDefaultEnabledMail(); }