* @param $limit Int|String
*/
function setLimit( $limit ) {
- $limit = (int) $limit;
+ $limit = (int)$limit;
// WebRequest::getLimitOffset() puts a cap of 5000, so do same here.
if ( $limit > 5000 ) {
$limit = 5000;
}
}
+ /**
+ * Get the current limit
+ *
+ * @return int
+ */
+ function getLimit() {
+ return $this->mLimit;
+ }
+
/**
* Set whether a row matching exactly the offset should be also included
* in the result or not. By default this is not the case, but when the
* representing the result row $row. Rows will be concatenated and
* returned by getBody()
*
- * @param $row Object: database row
- * @return String
+ * @param array $row Database row
+ * @return string
*/
abstract function formatRow( $row );