aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/activity
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2015-02-24 15:19:15 +0100
committerLukas Reschke <lukas@owncloud.com>2015-02-24 15:19:15 +0100
commitd43d34c93f86ffa968158e57cb03728843ec8e93 (patch)
treef9735591c6e44727a0e4116f80e183d6f89ff38e /lib/public/activity
parent732541448136d41b97a7fc77f6efb23d6d893f3f (diff)
parent12fc6258854eb2e9d72a8777131e2bca71075b41 (diff)
downloadnextcloud-server-d43d34c93f86ffa968158e57cb03728843ec8e93.tar.gz
nextcloud-server-d43d34c93f86ffa968158e57cb03728843ec8e93.zip
Merge pull request #14195 from owncloud/activity-manager-performance-improvements
Activity manager performance improvements
Diffstat (limited to 'lib/public/activity')
-rw-r--r--lib/public/activity/iextension.php38
-rw-r--r--lib/public/activity/imanager.php24
2 files changed, 31 insertions, 31 deletions
diff --git a/lib/public/activity/iextension.php b/lib/public/activity/iextension.php
index b85532ded1f..643ea11cffa 100644
--- a/lib/public/activity/iextension.php
+++ b/lib/public/activity/iextension.php
@@ -42,16 +42,6 @@ interface IExtension {
public function getNotificationTypes($languageCode);
/**
- * The extension can filter the types based on the filter if required.
- * In case no filter is to be applied false is to be returned unchanged.
- *
- * @param array $types
- * @param string $filter
- * @return array|false
- */
- public function filterNotificationTypes($types, $filter);
-
- /**
* For a given method additional types to be displayed in the settings can be returned.
* In case no additional types are to be added false is to be returned.
*
@@ -61,6 +51,15 @@ interface IExtension {
public function getDefaultTypes($method);
/**
+ * A string naming the css class for the icon to be used can be returned.
+ * If no icon is known for the given type false is to be returned.
+ *
+ * @param string $type
+ * @return string|false
+ */
+ public function getTypeIcon($type);
+
+ /**
* The extension can translate a given message to the requested languages.
* If no translation is available false is to be returned.
*
@@ -88,15 +87,6 @@ interface IExtension {
public function getSpecialParameterList($app, $text);
/**
- * A string naming the css class for the icon to be used can be returned.
- * If no icon is known for the given type false is to be returned.
- *
- * @param string $type
- * @return string|false
- */
- public function getTypeIcon($type);
-
- /**
* The extension can define the parameter grouping by returning the index as integer.
* In case no grouping is required false is to be returned.
*
@@ -123,6 +113,16 @@ interface IExtension {
public function isFilterValid($filterValue);
/**
+ * The extension can filter the types based on the filter if required.
+ * In case no filter is to be applied false is to be returned unchanged.
+ *
+ * @param array $types
+ * @param string $filter
+ * @return array|false
+ */
+ public function filterNotificationTypes($types, $filter);
+
+ /**
* For a given filter the extension can specify the sql query conditions including parameters for that query.
* In case the extension does not know the filter false is to be returned.
* The query condition and the parameters are to be returned as array with two elements.
diff --git a/lib/public/activity/imanager.php b/lib/public/activity/imanager.php
index ded17336ed8..bc320a0f8b4 100644
--- a/lib/public/activity/imanager.php
+++ b/lib/public/activity/imanager.php
@@ -72,17 +72,16 @@ interface IManager {
function getNotificationTypes($languageCode);
/**
- * @param array $types
- * @param string $filter
+ * @param string $method
* @return array
*/
- function filterNotificationTypes($types, $filter);
+ function getDefaultTypes($method);
/**
- * @param string $method
- * @return array
+ * @param string $type
+ * @return string
*/
- function getDefaultTypes($method);
+ function getTypeIcon($type);
/**
* @param string $app
@@ -103,12 +102,6 @@ interface IManager {
function getSpecialParameterList($app, $text);
/**
- * @param string $type
- * @return string
- */
- function getTypeIcon($type);
-
- /**
* @param array $activity
* @return integer|false
*/
@@ -126,6 +119,13 @@ interface IManager {
function isFilterValid($filterValue);
/**
+ * @param array $types
+ * @param string $filter
+ * @return array
+ */
+ function filterNotificationTypes($types, $filter);
+
+ /**
* @param string $filter
* @return array
*/