- );
-
- $result = array();
- while (($obj = $dbr->fetchObject($res)) != NULL)
- $result[] = $obj;
-
- return $result;
- }
-
- /** @todo document */
- function getNotificationTimestamp() {
- global $wgUser, $wgShowUpdatedMarker;
-
- if ($this->mNotificationTimestamp !== NULL)
- return $this->mNotificationTimestamp;
-
- if ($wgUser->isAnon() || !$wgShowUpdatedMarker)
- return $this->mNotificationTimestamp = false;
-
- $dbr = wfGetDB(DB_SLAVE);
-
- $this->mNotificationTimestamp = $dbr->selectField(
- 'watchlist',
- 'wl_notificationtimestamp',
- array( 'wl_namespace' => $this->mTitle->getNamespace(),
- 'wl_title' => $this->mTitle->getDBkey(),
- 'wl_user' => $wgUser->getId()
- ),
- __METHOD__ );
-
- // Don't use the special value reserved for telling whether the field is filled
- if ( is_null( $this->mNotificationTimestamp ) ) {
- $this->mNotificationTimestamp = false;
- }
-
- return $this->mNotificationTimestamp;