62 $casTimestamp = $this->params[
'notifTime'] ?? $this->params[
'curTime'];
72 $casTimeCond = $dbw->expr(
'wl_notificationtimestamp',
'<', $dbw->timestamp( $casTimestamp ) );
75 $wlId = $dbw->newSelectQueryBuilder()
79 'wl_user' => $this->params[
'userid'],
80 'wl_namespace' => $this->title->getNamespace(),
81 'wl_title' => $this->title->getDBkey(),
83 ] )->caller( __METHOD__ )->fetchField();
88 $dbw->newUpdateQueryBuilder()
89 ->update(
'watchlist' )
90 ->set( [
'wl_notificationtimestamp' => $dbw->timestampOrNull( $this->params[
'notifTime'] ) ] )
91 ->where( [
'wl_id' => (
int)$wlId, $casTimeCond ] )
92 ->caller( __METHOD__ )->execute();