X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FTitleArray.php;h=90fb861a94d0cfb07b1db8fe90cddf0692cf8865;hb=636c64482dc740e05b3a114927655a62acd1eca6;hp=b2f3d2f379e46a312716f6da1e120b06bfa7bb88;hpb=38473966ead6e85dc444f27b721c89542eb99866;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/TitleArray.php b/includes/TitleArray.php index b2f3d2f379..90fb861a94 100644 --- a/includes/TitleArray.php +++ b/includes/TitleArray.php @@ -1,8 +1,27 @@ setCurrent( $this->res->current() ); } + /** + * @param $row ResultWrapper + * @return void + */ protected function setCurrent( $row ) { if ( $row === false ) { $this->current = false; @@ -51,6 +82,13 @@ class TitleArrayFromResult extends TitleArray { } } + /** + * @return int + */ + public function count() { + return $this->res->numRows(); + } + function current() { return $this->current; } @@ -71,6 +109,9 @@ class TitleArrayFromResult extends TitleArray { $this->setCurrent( $this->res->current() ); } + /** + * @return bool + */ function valid() { return $this->current !== false; }