add "limit" navigation control to xml query and db classes

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0-DB@8395 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
mosmartin 2011-05-25 11:32:54 +00:00
parent 4d2d18b53b
commit 750733936b
6 changed files with 65 additions and 8 deletions

View file

@ -0,0 +1,16 @@
<?php
class Limit {
var $start;
var $end;
function Limit($page, $list_count){
$this->start = ($page-1)*$list_count;
$this->end = $list_count;
}
function toString(){
return $this->start . ' , ' . $this->end;
}
}
?>