XpressEngine Core
1.11.2
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Pages
classes
db
queryparts
Subquery.class.php
Go to the documentation of this file.
1
<?php
2
/* Copyright (C) NAVER <http://www.navercorp.com> */
3
9
class
Subquery
extends
Query
10
{
11
16
var
$alias
;
17
22
var
$join_type
;
23
36
function
__construct
(
$alias
,
$columns
,
$tables
,
$conditions
,
$groups
,
$orderby
,
$limit
,
$join_type
= null)
37
{
38
$this->alias =
$alias
;
39
40
$this->queryID = null;
41
$this->action =
"select"
;
42
43
$this->columns =
$columns
;
44
$this->tables =
$tables
;
45
$this->conditions =
$conditions
;
46
$this->groups =
$groups
;
47
$this->orderby =
$orderby
;
48
$this->
limit
=
$limit
;
49
$this->join_type =
$join_type
;
50
}
51
52
function
getAlias
()
53
{
54
return
$this->alias
;
55
}
56
57
function
isJoinTable
()
58
{
59
if
($this->join_type)
60
{
61
return
true
;
62
}
63
return
false
;
64
}
65
66
function
toString
($with_values =
true
)
67
{
68
$oDB = &
DB::getInstance
();
69
70
return
'('
. $oDB->getSelectSql($this, $with_values) .
')'
;
71
}
72
73
function
isSubquery
()
74
{
75
return
true
;
76
}
77
78
}
79
/* End of file Subquery.class.php */
80
/* Location: ./classes/db/queryparts/Subquery.class.php */
Query\$conditions
$conditions
Definition:
Query.class.php:46
Subquery\isSubquery
isSubquery()
Definition:
Subquery.class.php:73
Query\$groups
$groups
Definition:
Query.class.php:52
Query\$columns
$columns
Definition:
Query.class.php:34
Subquery\toString
toString($with_values=true)
Definition:
Subquery.class.php:66
Query\limit
limit($limit)
Definition:
Query.class.php:325
Query\$orderby
$orderby
Definition:
Query.class.php:58
Subquery\__construct
__construct($alias, $columns, $tables, $conditions, $groups, $orderby, $limit, $join_type=null)
Definition:
Subquery.class.php:36
Query
Definition:
Query.class.php:9
Subquery
Definition:
Subquery.class.php:9
Subquery\$join_type
$join_type
Definition:
Subquery.class.php:22
DB\getInstance
getInstance($db_type=NULL)
Definition:
DB.class.php:142
Subquery\isJoinTable
isJoinTable()
Definition:
Subquery.class.php:57
Query\$tables
$tables
Definition:
Query.class.php:40
Subquery\$alias
$alias
Definition:
Subquery.class.php:16
Subquery\getAlias
getAlias()
Definition:
Subquery.class.php:52
Query\$limit
$limit
Definition:
Query.class.php:64
Generated on Tue Dec 18 2018 17:04:25 for XpressEngine Core by
1.8.5