r42780 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r42779‎ | r42780 | r42781 >
Date:19:21, 29 October 2008
Author:btongminh
Status:old
Tags:
Comment:
Need setOffset and setLimit as well
Modified paths:
  • /trunk/phase3/includes/Pager.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Pager.php
@@ -161,6 +161,19 @@
162162 function getResult() {
163163 return $this->mResult;
164164 }
 165+
 166+ /**
 167+ * Set the offset from an other source than $wgRequest
 168+ */
 169+ function setOffset( $offset ) {
 170+ $this->mOffset = $offset;
 171+ }
 172+ /**
 173+ * Set the limit from an other source than $wgRequest
 174+ */
 175+ function setLimit( $limit ) {
 176+ $this->mLimit = $limit;
 177+ }
165178
166179 /**
167180 * Extract some useful data from the result object for use by

Status & tagging log