diff options
author | Aryeh Gregor <simetrical@users.mediawiki.org> | 2008-07-27 18:59:46 +0000 |
---|---|---|
committer | Aryeh Gregor <simetrical@users.mediawiki.org> | 2008-07-27 18:59:46 +0000 |
commit | 7452677213a14ef046144a03da2d017c696b950b (patch) | |
tree | 3ac93ad6805d20661cb03c55bfd03cdba419097f /includes/TitleArray.php | |
parent | 139e98bd877acffe747fe45197ea08a946a3a906 (diff) | |
download | mediawikicore-7452677213a14ef046144a03da2d017c696b950b.tar.gz mediawikicore-7452677213a14ef046144a03da2d017c696b950b.zip |
* Add count() method to TitleArray and UserArray.
* Change PageHistory::fetchRevisions() to return a result object instead of an array of rows.
* Stylistic issues: use foreach( $res as $row ) instead of while( $row = $dbr->fetchObject( $res ) ), change a couple of variable names, use __METHOD__.
There should be no functional changes.
Notes
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/38107
Diffstat (limited to 'includes/TitleArray.php')
-rw-r--r-- | includes/TitleArray.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/includes/TitleArray.php b/includes/TitleArray.php index b2f3d2f379e4..f7a9e1dc64ed 100644 --- a/includes/TitleArray.php +++ b/includes/TitleArray.php @@ -51,6 +51,10 @@ class TitleArrayFromResult extends TitleArray { } } + public function count() { + return $this->res->numRows(); + } + function current() { return $this->current; } |