Add the app id to the markProcessed method

This commit is contained in:
Joas Schilling 2015-09-01 10:28:11 +02:00
parent 0bcae89d14
commit f0ecfa6e6c
2 changed files with 5 additions and 3 deletions

View File

@ -155,16 +155,17 @@ class Manager implements IManager {
}
/**
* @param string $appId
* @param string $objectType
* @param int $objectId
* @param string $user
* @return null
*/
public function markProcessed($objectType, $objectId, $user = '') {
public function markProcessed($appId, $objectType, $objectId, $user = '') {
$apps = $this->getApps();
foreach ($apps as $app) {
$app->markProcessed($objectType, $objectId, $user);
$app->markProcessed($appId, $objectType, $objectId, $user);
}
}

View File

@ -41,13 +41,14 @@ interface IApp {
public function notify(INotification $notification);
/**
* @param string $appId
* @param string $objectType
* @param int $objectId
* @param string $user
* @return null
* @since 8.2.0
*/
public function markProcessed($objectType, $objectId, $user = '');
public function markProcessed($appId, $objectType, $objectId, $user = '');
/**
* @param string $user