mDb = $dbr; parent::__construct( $changesList, $linkRenderer ); $this->changesList = $changesList; $this->title = $title; $this->conds = $conds; $this->rcCounter = 1; } /** * @return array */ public function getQueryInfo() { $rcQuery = RecentChange::getQueryInfo(); return [ 'tables' => $rcQuery['tables'], 'fields' => $rcQuery['fields'], 'conds' => $this->conds, 'join_conds' => $rcQuery['joins'], ]; } /** * @param stdClass $row * @return string */ public function formatRow( $row ) { $rc = RecentChange::newFromRow( $row ); $rc->counter = $this->rcCounter++; return $this->changesList->recentChangesLine( $rc, false ); } /** * @codeCoverageIgnore Merely declarative * @inheritDoc */ public function getIndexField() { return 'rc_id'; } /** * @codeCoverageIgnore Merely declarative * @return Title */ public function getTitle() { return $this->title; } /** * @return string */ public function getEmptyBody() { return $this->msg( 'abusefilter-examine-noresults' )->parseAsBlock(); } }