From 5becbb47b4fd0c72174db930fd735e5a681357ba Mon Sep 17 00:00:00 2001 From: =?utf8?q?Niklas=20Laxstr=C3=B6m?= Date: Wed, 22 Dec 2010 15:22:59 +0000 Subject: [PATCH] Few @since annotations --- includes/QueryPage.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/includes/QueryPage.php b/includes/QueryPage.php index 6aba8845b9..f8db54c1b6 100644 --- a/includes/QueryPage.php +++ b/includes/QueryPage.php @@ -159,6 +159,7 @@ abstract class QueryPage extends SpecialPage { * or TS_UNIX (querycache) format, so be sure to always run them * through wfTimestamp() * @return bool + * @since 1.18 */ function usesTimestamps() { return false; @@ -190,6 +191,7 @@ abstract class QueryPage extends SpecialPage { * will be disabled in miser mode and will not have their results written * to the querycache table. * @return Boolean + * @since 1.18 */ public function isCacheable() { return true; @@ -332,6 +334,7 @@ abstract class QueryPage extends SpecialPage { * @param $limit mixed Numerical limit or false for no limit * @param $offset mixed Numerical offset or false for no offset * @return ResultWrapper + * @since 1.18 */ function reallyDoQuery( $limit, $offset = false ) { $fname = get_class( $this ) . "::reallyDoQuery"; @@ -372,6 +375,9 @@ abstract class QueryPage extends SpecialPage { return $dbr->resultObject( $res ); } + /** + * Parameters and order changed in 1.18 + */ function doQuery( $limit, $offset = false ) { if ( $this->isCached() && $this->isCacheable() ) { return $this->fetchFromCache( $limit, $offset ); @@ -385,6 +391,7 @@ abstract class QueryPage extends SpecialPage { * @param $limit mixed Numerical limit or false for no limit * @param $offset mixed Numerical offset or false for no offset * @return ResultWrapper + * @since 1.18 */ function fetchFromCache( $limit, $offset = false ) { $dbr = wfGetDB( DB_SLAVE ); -- 2.20.1