75 $casTimestamp = $this->params[
'notifTime'] ?? $this->params[
'curTime'];
85 $casTimeCond = $dbw->expr(
'wl_notificationtimestamp',
'<', $dbw->timestamp( $casTimestamp ) );
88 $wlId = $dbw->newSelectQueryBuilder()
92 'wl_user' => $this->params[
'userid'],
93 'wl_namespace' => $this->title->getNamespace(),
94 'wl_title' => $this->title->getDBkey(),
96 ] )->caller( __METHOD__ )->fetchField();
101 $dbw->newUpdateQueryBuilder()
102 ->update(
'watchlist' )
103 ->set( [
'wl_notificationtimestamp' => $dbw->timestampOrNull( $this->params[
'notifTime'] ) ] )
104 ->where( [
'wl_id' => (
int)$wlId, $casTimeCond ] )
105 ->caller( __METHOD__ )->execute();