From d9022f63880ce039446fba8364f68e656b7bf4cb Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Thu, 3 May 2012 13:01:35 +0200 Subject: Update to MediaWiki 1.19.0 --- includes/db/DatabaseUtility.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'includes/db/DatabaseUtility.php') diff --git a/includes/db/DatabaseUtility.php b/includes/db/DatabaseUtility.php index d1bced6b..0ea713c8 100644 --- a/includes/db/DatabaseUtility.php +++ b/includes/db/DatabaseUtility.php @@ -10,6 +10,9 @@ class DBObject { $this->mData = $data; } + /** + * @return bool + */ function isLOB() { return false; } @@ -155,6 +158,9 @@ class ResultWrapper implements Iterator { $this->currentRow = null; } + /** + * @return int + */ function current() { if ( is_null( $this->currentRow ) ) { $this->next(); @@ -162,16 +168,25 @@ class ResultWrapper implements Iterator { return $this->currentRow; } + /** + * @return int + */ function key() { return $this->pos; } + /** + * @return int + */ function next() { $this->pos++; $this->currentRow = $this->fetchObject(); return $this->currentRow; } + /** + * @return bool + */ function valid() { return $this->current() !== false; } -- cgit v1.2.3-54-g00ecf