Add the app id to the markProcessed method

remotes/origin/db-empty-migrate
Joas Schilling 11 years ago
parent 0bcae89d14
commit f0ecfa6e6c
  1. 5
      lib/private/notification/manager.php
  2. 3
      lib/public/notification/iapp.php

@ -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);
}
}

@ -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

Loading…
Cancel
Save