X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FUserArray.php;h=3b8f5c10772843b80148c1449e081e40ec9d93ce;hb=cdfc16d0afa4286cf47b76ccaca3d83fd02ec458;hp=a69df41ef1ac45d2315872d770f356c7699f23f9;hpb=85a15bea84a095cc1ed967b1091626a4c3763d74;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/UserArray.php b/includes/UserArray.php index a69df41ef1..3b8f5c1077 100644 --- a/includes/UserArray.php +++ b/includes/UserArray.php @@ -1,9 +1,28 @@ res = $res; $this->key = 0; $this->setCurrent( $this->res->current() ); } + /** + * @param $row + * @return void + */ protected function setCurrent( $row ) { if ( $row === false ) { $this->current = false; @@ -57,10 +90,16 @@ class UserArrayFromResult extends UserArray { } } + /** + * @return int + */ public function count() { return $this->res->numRows(); } + /** + * @return User + */ function current() { return $this->current; } @@ -81,6 +120,9 @@ class UserArrayFromResult extends UserArray { $this->setCurrent( $this->res->current() ); } + /** + * @return bool + */ function valid() { return $this->current !== false; }