mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-04 17:44:38 +09:00
Fix condition/ConditionGroup.class.php when all conditions have no value.
Add page navigation mechanism. git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0-DB@8399 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
750733936b
commit
0b78e26357
4 changed files with 66 additions and 11 deletions
|
|
@ -1,15 +1,23 @@
|
|||
<?php
|
||||
class Limit {
|
||||
var $start;
|
||||
var $end;
|
||||
|
||||
function Limit($page, $list_count){
|
||||
var $list_count;
|
||||
var $page_count;
|
||||
var $page;
|
||||
|
||||
function Limit($page, $list_count, $page_count){
|
||||
$this->start = ($page-1)*$list_count;
|
||||
$this->end = $list_count;
|
||||
$this->list_count = $list_count;
|
||||
$this->page_count = $page_count;
|
||||
$this->page = $page;
|
||||
}
|
||||
|
||||
function isPageHandler(){//in case you choose to use query limit in other cases than page select
|
||||
return true;
|
||||
}
|
||||
|
||||
function toString(){
|
||||
return $this->start . ' , ' . $this->end;
|
||||
return $this->start . ' , ' . $this->list_count;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue