Index: trunk/phase3/includes/Pager.php |
— | — | @@ -107,6 +107,9 @@ |
108 | 108 | $this->mResult = $this->reallyDoQuery( $this->mOffset, $queryLimit, $descending ); |
109 | 109 | $this->extractResultInfo( $this->mOffset, $queryLimit, $this->mResult ); |
110 | 110 | $this->mQueryDone = true; |
| 111 | + |
| 112 | + $this->preprocessResults( $this->mResult ); |
| 113 | + $this->mResult->rewind(); // Paranoia |
111 | 114 | |
112 | 115 | wfProfileOut( $fname ); |
113 | 116 | } |
— | — | @@ -193,6 +196,13 @@ |
194 | 197 | } |
195 | 198 | |
196 | 199 | /** |
| 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 | + /** |
197 | 207 | * Get the formatted result list. Calls getStartBody(), formatRow() and |
198 | 208 | * getEndBody(), concatenates the results and returns them. |
199 | 209 | */ |