Index: trunk/phase3/includes/QueryPage.php |
— | — | @@ -159,6 +159,7 @@ |
160 | 160 | * or TS_UNIX (querycache) format, so be sure to always run them |
161 | 161 | * through wfTimestamp() |
162 | 162 | * @return bool |
| 163 | + * @since 1.18 |
163 | 164 | */ |
164 | 165 | function usesTimestamps() { |
165 | 166 | return false; |
— | — | @@ -190,6 +191,7 @@ |
191 | 192 | * will be disabled in miser mode and will not have their results written |
192 | 193 | * to the querycache table. |
193 | 194 | * @return Boolean |
| 195 | + * @since 1.18 |
194 | 196 | */ |
195 | 197 | public function isCacheable() { |
196 | 198 | return true; |
— | — | @@ -332,6 +334,7 @@ |
333 | 335 | * @param $limit mixed Numerical limit or false for no limit |
334 | 336 | * @param $offset mixed Numerical offset or false for no offset |
335 | 337 | * @return ResultWrapper |
| 338 | + * @since 1.18 |
336 | 339 | */ |
337 | 340 | function reallyDoQuery( $limit, $offset = false ) { |
338 | 341 | $fname = get_class( $this ) . "::reallyDoQuery"; |
— | — | @@ -372,6 +375,9 @@ |
373 | 376 | return $dbr->resultObject( $res ); |
374 | 377 | } |
375 | 378 | |
| 379 | + /** |
| 380 | + * Parameters and order changed in 1.18 |
| 381 | + */ |
376 | 382 | function doQuery( $limit, $offset = false ) { |
377 | 383 | if ( $this->isCached() && $this->isCacheable() ) { |
378 | 384 | return $this->fetchFromCache( $limit, $offset ); |
— | — | @@ -385,6 +391,7 @@ |
386 | 392 | * @param $limit mixed Numerical limit or false for no limit |
387 | 393 | * @param $offset mixed Numerical offset or false for no offset |
388 | 394 | * @return ResultWrapper |
| 395 | + * @since 1.18 |
389 | 396 | */ |
390 | 397 | function fetchFromCache( $limit, $offset = false ) { |
391 | 398 | $dbr = wfGetDB( DB_SLAVE ); |