X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fwatcheditem%2FWatchedItemStoreInterface.php;h=349d98a2315b7b8ac011d381d245eaf4e6bcb2c4;hp=274d3f4812945e3d5befdf64b9a973c42856578b;hb=a38af7ba26579bb3004f673e44d39710887763aa;hpb=f69c80fa5c6ee3a07b4c8a344e79b365515a1cc9 diff --git a/includes/watcheditem/WatchedItemStoreInterface.php b/includes/watcheditem/WatchedItemStoreInterface.php index 274d3f4812..349d98a231 100644 --- a/includes/watcheditem/WatchedItemStoreInterface.php +++ b/includes/watcheditem/WatchedItemStoreInterface.php @@ -326,4 +326,18 @@ interface WatchedItemStoreInterface { */ public function removeWatchBatchForUser( User $user, array $targets ); + /** + * Convert $timestamp to TS_MW or return null if the page was visited since then by $user + * + * Use this only on single-user methods (having higher read-after-write expectations) + * and not in places involving arbitrary batches of different users + * + * Usage of this method should be limited to WatchedItem* classes + * + * @param string|null $timestamp Value of wl_notificationtimestamp from the DB + * @param User $user + * @param LinkTarget $target + * @return string TS_MW timestamp or null + */ + public function getLatestNotificationTimestamp( $timestamp, User $user, LinkTarget $target ); }