XpressEngine Core  1.11.2
 All Classes Namespaces Files Functions Variables Pages
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 
23 
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 */
toString($with_values=true)
limit($limit)
__construct($alias, $columns, $tables, $conditions, $groups, $orderby, $limit, $join_type=null)
getInstance($db_type=NULL)
Definition: DB.class.php:142