mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-12 05:22:35 +09:00
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:
parent
4d2d18b53b
commit
750733936b
6 changed files with 65 additions and 8 deletions
16
classes/db/queryparts/limit/Limit.class.php
Normal file
16
classes/db/queryparts/limit/Limit.class.php
Normal 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;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue