diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2015-08-11 11:24:27 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2015-08-11 11:24:27 +0200 |
commit | acd54fbeda9dae0fa43291a9c190226ccd306503 (patch) | |
tree | 468a3b1c9ee56b0c8249fbbc855036fc1dceb529 /lib | |
parent | 669d705792b9acdb5687ece5d8d358b71609e360 (diff) | |
parent | a1037f1679a53954a1385481dc30d37a8413b179 (diff) | |
download | nextcloud-server-acd54fbeda9dae0fa43291a9c190226ccd306503.tar.gz nextcloud-server-acd54fbeda9dae0fa43291a9c190226ccd306503.zip |
Merge pull request #16528 from owncloud/activity-302-improve-settings
Activity 302 improve settings
Diffstat (limited to 'lib')
-rw-r--r-- | lib/public/activity/iextension.php | 9 | ||||
-rw-r--r-- | lib/public/activity/imanager.php | 8 |
2 files changed, 15 insertions, 2 deletions
diff --git a/lib/public/activity/iextension.php b/lib/public/activity/iextension.php index 19d1d2e83a0..5d9fe3329ef 100644 --- a/lib/public/activity/iextension.php +++ b/lib/public/activity/iextension.php @@ -38,6 +38,8 @@ namespace OCP\Activity; * @since 8.0.0 */ interface IExtension { + const METHOD_STREAM = 'stream'; + const METHOD_MAIL = 'email'; const PRIORITY_VERYLOW = 10; const PRIORITY_LOW = 20; @@ -50,8 +52,13 @@ interface IExtension { * If no additional types are to be added false is to be returned * * @param string $languageCode - * @return array|false + * @return array|false Array "stringID of the type" => "translated string description for the setting" + * or Array "stringID of the type" => [ + * 'desc' => "translated string description for the setting" + * 'methods' => [self::METHOD_*], + * ] * @since 8.0.0 + * @changed 8.2.0 - Added support to allow limiting notifications to certain methods */ public function getNotificationTypes($languageCode); diff --git a/lib/public/activity/imanager.php b/lib/public/activity/imanager.php index cadb37da03b..0f5dccd8ba1 100644 --- a/lib/public/activity/imanager.php +++ b/lib/public/activity/imanager.php @@ -81,9 +81,15 @@ interface IManager { /** * Will return additional notification types as specified by other apps + * * @param string $languageCode - * @return array + * @return array Array "stringID of the type" => "translated string description for the setting" + * or Array "stringID of the type" => [ + * 'desc' => "translated string description for the setting" + * 'methods' => [\OCP\Activity\IExtension::METHOD_*], + * ] * @since 8.0.0 + * @changed 8.2.0 - Added support to allow limiting notifications to certain methods */ function getNotificationTypes($languageCode); |