Updated DBCubrid pagination to use new Query class.

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0-DB@8439 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ucorina 2011-06-02 13:19:36 +00:00
parent 0cd318fcf5
commit d51e931527
3 changed files with 26 additions and 21 deletions

View file

@ -9,6 +9,7 @@
var $conditions;
var $groups;
var $orderby;
var $limit;
function setQueryId($queryID){
@ -105,7 +106,7 @@
return $this->action;
}
function getSelect(){
function getSelectString(){
$select = '';
foreach($this->columns as $column){
if($column->show())
@ -116,7 +117,7 @@
return $select;
}
function getFrom(){
function getFromString(){
$from = '';
$simple_table_count = 0;
foreach($this->tables as $table){
@ -131,7 +132,7 @@
}
function getWhere(){
function getWhereString(){
$where = '';
if(count($this->conditions) > 0){
foreach($this->conditions as $conditionGroup){
@ -143,14 +144,14 @@
return $where;
}
function getGroupBy(){
function getGroupByString(){
$groupBy = '';
if($this->groups) if($this->groups[0] !== "")
$groupBy = implode(', ', $this->groups);
return $groupBy;
}
function getOrderBy(){
function getOrderByString(){
if(count($this->orderby) === 0) return '';
$orderBy = '';
foreach($this->orderby as $order){
@ -161,6 +162,10 @@
}
function getLimit(){
return $this->limit;
}
function getLimitString(){
$limit = '';
if(count($this->limit) > 0){
$limit = '';