mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 19:21:40 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0-DB@8556 201d5d3c-b55e-5fd7-737f-ddc643e51545
38 lines
No EOL
1 KiB
PHP
38 lines
No EOL
1 KiB
PHP
<?php
|
|
|
|
class Subquery extends Query {
|
|
var $alias;
|
|
var $join_type;
|
|
|
|
function Subquery($alias, $columns, $tables, $conditions, $groups, $orderby, $limit, $join_type = null){
|
|
$this->alias = $alias;
|
|
|
|
$this->queryID = null;
|
|
$this->action = "select";
|
|
|
|
$this->columns = $columns;
|
|
$this->tables = $tables;
|
|
$this->conditions = $conditions;
|
|
$this->groups = $groups;
|
|
$this->orderby = $orderby;
|
|
$this->limit = $limit;
|
|
$this->join_type = $join_type;
|
|
}
|
|
|
|
function getAlias(){
|
|
return $this->alias;
|
|
}
|
|
|
|
function isJoinTable(){
|
|
if($this->join_type) return true;
|
|
return false;
|
|
}
|
|
|
|
function toString($with_values = true){
|
|
$oDB = &DB::getInstance();
|
|
return '(' .$oDB->getSelectSql($this, $with_values) . ')';
|
|
|
|
}
|
|
}
|
|
|
|
?>
|