diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2015-02-13 11:51:55 +0100 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2015-02-13 11:55:06 +0100 |
commit | 6c349c00bb7ce3c43a44588de5cf158158d2990b (patch) | |
tree | 3b91764277e29ad537de6157ce6831d7521b4e02 /lib/public/activity | |
parent | be63e18b0aaf403dab86b3b42500e5e4b18183e4 (diff) | |
download | nextcloud-server-6c349c00bb7ce3c43a44588de5cf158158d2990b.tar.gz nextcloud-server-6c349c00bb7ce3c43a44588de5cf158158d2990b.zip |
Order methods to by grouped by their task
Diffstat (limited to 'lib/public/activity')
-rw-r--r-- | lib/public/activity/iextension.php | 38 | ||||
-rw-r--r-- | lib/public/activity/imanager.php | 24 |
2 files changed, 31 insertions, 31 deletions
diff --git a/lib/public/activity/iextension.php b/lib/public/activity/iextension.php index 1b405ad8d3d..0f6c3c5f8a5 100644 --- a/lib/public/activity/iextension.php +++ b/lib/public/activity/iextension.php @@ -47,16 +47,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. * @@ -66,6 +56,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. * @@ -93,15 +92,6 @@ interface IExtension { 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. * @@ -128,6 +118,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 a08670be4b0..4a07e6912b0 100644 --- a/lib/public/activity/imanager.php +++ b/lib/public/activity/imanager.php @@ -76,17 +76,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 @@ -107,12 +106,6 @@ interface IManager { function getSpecialParameterList($app, $text); /** - * @param string $type - * @return string - */ - function getTypeIcon($type); - - /** * @param array $activity * @return integer|false */ @@ -130,6 +123,13 @@ interface IManager { function isFilterValid($filterValue); /** + * @param array $types + * @param string $filter + * @return array + */ + function filterNotificationTypes($types, $filter); + + /** * @param string $filter * @return array */ |