X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fwatcheditem%2FWatchedItemStoreInterface.php;h=a450ae53477d85b03d859b585505ed705e4f17d8;hb=942728ab20e01bba200031b01eb606ee59279bd2;hp=133f480cdf700896db456d53252c77e16199e2d7;hpb=963bff8cce84a627fd68f415b99ce6760e3748b8;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/watcheditem/WatchedItemStoreInterface.php b/includes/watcheditem/WatchedItemStoreInterface.php index 133f480cdf..a450ae5347 100644 --- a/includes/watcheditem/WatchedItemStoreInterface.php +++ b/includes/watcheditem/WatchedItemStoreInterface.php @@ -209,7 +209,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 +221,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 +255,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 );