Need setOffset and setLimit as well
authorBryan Tong Minh <btongminh@users.mediawiki.org>
Wed, 29 Oct 2008 19:21:21 +0000 (19:21 +0000)
committerBryan Tong Minh <btongminh@users.mediawiki.org>
Wed, 29 Oct 2008 19:21:21 +0000 (19:21 +0000)
includes/Pager.php

index 979c8c4..8ec32ff 100644 (file)
@@ -161,6 +161,19 @@ abstract class IndexPager implements Pager {
        function getResult() {
                return $this->mResult;
        }
+       
+       /**
+        * Set the offset from an other source than $wgRequest
+        */
+       function setOffset( $offset ) {
+               $this->mOffset = $offset;
+       }
+       /**
+        * Set the limit from an other source than $wgRequest
+        */
+       function setLimit( $limit ) {
+               $this->mLimit = $limit;
+       }
 
        /**
         * Extract some useful data from the result object for use by