r24233 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r24232‎ | r24233 | r24234 >
Date:09:29, 18 July 2007
Author:robchurch
Status:old
Tags:
Comment:
Introduce IndexPager::preprocessResults(); useful for doing batch existence checks, etc.
Modified paths:
  • /trunk/phase3/includes/Pager.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Pager.php
@@ -107,6 +107,9 @@
108108 $this->mResult = $this->reallyDoQuery( $this->mOffset, $queryLimit, $descending );
109109 $this->extractResultInfo( $this->mOffset, $queryLimit, $this->mResult );
110110 $this->mQueryDone = true;
 111+
 112+ $this->preprocessResults( $this->mResult );
 113+ $this->mResult->rewind(); // Paranoia
111114
112115 wfProfileOut( $fname );
113116 }
@@ -193,6 +196,13 @@
194197 }
195198
196199 /**
 200+ * Pre-process results; useful for performing batch existence checks, etc.
 201+ *
 202+ * @param ResultWrapper $result Result wrapper
 203+ */
 204+ protected function preprocessResult( $result ) {}
 205+
 206+ /**
197207 * Get the formatted result list. Calls getStartBody(), formatRow() and
198208 * getEndBody(), concatenates the results and returns them.
199209 */

Follow-up revisions

RevisionCommit summaryAuthorDate
r24276Merged revisions 24213-24275 via svnmerge from...david20:20, 19 July 2007

Status & tagging log