includes/WatchedItemQueryService.php 1 location
|
@@ 264-271 (lines=8) @@
|
| 261 |
|
$this->reuseConnection( $db ); |
| 262 |
|
|
| 263 |
|
$watchedItems = []; |
| 264 |
|
foreach ( $res as $row ) { |
| 265 |
|
// todo these could all be cached at some point? |
| 266 |
|
$watchedItems[] = new WatchedItem( |
| 267 |
|
$user, |
| 268 |
|
new TitleValue( (int)$row->wl_namespace, $row->wl_title ), |
| 269 |
|
$row->wl_notificationtimestamp |
| 270 |
|
); |
| 271 |
|
} |
| 272 |
|
|
| 273 |
|
return $watchedItems; |
| 274 |
|
} |
includes/WatchedItemStore.php 1 location
|
@@ 496-503 (lines=8) @@
|
| 493 |
|
); |
| 494 |
|
|
| 495 |
|
$watchedItems = []; |
| 496 |
|
foreach ( $res as $row ) { |
| 497 |
|
// todo these could all be cached at some point? |
| 498 |
|
$watchedItems[] = new WatchedItem( |
| 499 |
|
$user, |
| 500 |
|
new TitleValue( (int)$row->wl_namespace, $row->wl_title ), |
| 501 |
|
$row->wl_notificationtimestamp |
| 502 |
|
); |
| 503 |
|
} |
| 504 |
|
|
| 505 |
|
return $watchedItems; |
| 506 |
|
} |