diff options
author | Joas Schilling <nickvergessen@owncloud.com> | 2015-09-01 10:46:32 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@owncloud.com> | 2015-09-08 09:01:01 +0200 |
commit | 913e2e9ae67de805d99039105c634c843009345e (patch) | |
tree | 24dca758e8db10165b84f745c584127874d64036 /lib/private/notification/manager.php | |
parent | 3bdfef910708eaba19daaf7d1d992cd4575af3b4 (diff) | |
download | nextcloud-server-913e2e9ae67de805d99039105c634c843009345e.tar.gz nextcloud-server-913e2e9ae67de805d99039105c634c843009345e.zip |
Use an INotification to getCount() and markProcessed()
Diffstat (limited to 'lib/private/notification/manager.php')
-rw-r--r-- | lib/private/notification/manager.php | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/lib/private/notification/manager.php b/lib/private/notification/manager.php index 1946c4203d4..f14929642dc 100644 --- a/lib/private/notification/manager.php +++ b/lib/private/notification/manager.php @@ -155,31 +155,27 @@ class Manager implements IManager { } /** - * @param string $appId - * @param string $objectType - * @param int $objectId - * @param string $user + * @param INotification $notification * @return null */ - public function markProcessed($appId, $objectType, $objectId, $user = '') { + public function markProcessed(INotification $notification) { $apps = $this->getApps(); foreach ($apps as $app) { - $app->markProcessed($appId, $objectType, $objectId, $user); + $app->markProcessed($notification); } } /** - * @param string $user - * @param string $appId + * @param INotification $notification * @return int */ - public function getCount($user, $appId = '') { + public function getCount(INotification $notification) { $apps = $this->getApps(); $count = 0; foreach ($apps as $app) { - $count += $app->markProcessed($user, $appId); + $count += $app->markProcessed($notification); } return $count; |