X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fwatcheditem%2FWatchedItemStoreInterface.php;h=30d1cbbe3be248043da0a39a1d2b4e7b0d200c0f;hb=21fb9bb32b82f13a436238a7dca9bac1464baf80;hp=133f480cdf700896db456d53252c77e16199e2d7;hpb=536a4afbffc9728879d2cc039eb7a28acfd6c3e5;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/watcheditem/WatchedItemStoreInterface.php b/includes/watcheditem/WatchedItemStoreInterface.php index 133f480cdf..30d1cbbe3b 100644 --- a/includes/watcheditem/WatchedItemStoreInterface.php +++ b/includes/watcheditem/WatchedItemStoreInterface.php @@ -19,6 +19,7 @@ * @ingroup Watchlist */ use MediaWiki\Linker\LinkTarget; +use Wikimedia\Rdbms\DBUnexpectedError; /** * @author Addshore @@ -209,7 +210,7 @@ interface WatchedItemStoreInterface { /** * @since 1.31 * - * @param User $user The user to set the timestamp for + * @param User $user The user to set the timestamps for * @param string|null $timestamp Set the update timestamp to this value * @param LinkTarget[] $targets List of targets to update. Default to all targets * @@ -221,6 +222,15 @@ interface WatchedItemStoreInterface { array $targets = [] ); + /** + * Reset all watchlist notificaton timestamps for a user using the job queue + * + * @since 1.31 + * + * @param User $user The user to reset the timestamps for + */ + public function resetAllNotificationTimestampsForUser( User $user ); + /** * @since 1.31 * @@ -246,7 +256,7 @@ interface WatchedItemStoreInterface { * @param int $oldid The revision id being viewed. If not given or 0, latest revision is * assumed. * - * @return bool success + * @return bool success Whether a job was enqueued */ public function resetNotificationTimestamp( User $user, Title $title, $force = '', $oldid = 0 );