diff --git a/core/model/DataObjectSet.php b/core/model/DataObjectSet.php index 65a1331b3..cc6d49a41 100644 --- a/core/model/DataObjectSet.php +++ b/core/model/DataObjectSet.php @@ -309,6 +309,18 @@ class DataObjectSet extends ViewableData implements Iterator { return $this->TotalPages() > 1; } + function FirstItem() { + return isset($this->pageStart) ? $this->pageStart + 1 : 1; + } + + function LastItem() { + if(isset($this->pageStart)) { + return min($this->pageStart + $this->pageLength, $this->totalSize); + } else { + return min($this->pageLength, $this->totalSize); + } + } + /** * Returns the URL of the previous page. * @return string @@ -1006,4 +1018,4 @@ function column_sort_callback_basic($a, $b) { return $result; } -?> \ No newline at end of file +?>