XOOPS  2.6.0
QueryBuilder.php
Go to the documentation of this file.
1 <?php
12 namespace Xoops\Core\Database;
13 
15 
31 class QueryBuilder extends \Doctrine\DBAL\Query\QueryBuilder
32 {
33 
51  public function deletePrefix($delete = null, $alias = null)
52  {
53  $delete = Connection::prefix($delete);
54  return $this->delete($delete, $alias);
55  }
56 
74  public function updatePrefix($update = null, $alias = null)
75  {
77  return $this->update($update, $alias);
78  }
79 
100  public function insertPrefix($insert = null)
101  {
102  $insert = Connection::prefix($insert);
103  return $this->insert($insert);
104  }
105 
121  public function fromPrefix($from, $alias = null)
122  {
123  $from = Connection::prefix($from);
124  return $this->from($from, $alias);
125  }
126 
144  public function joinPrefix($fromAlias, $join, $alias, $condition = null)
145  {
146  $join = Connection::prefix($join);
147  return $this->join($fromAlias, $join, $alias, $condition);
148  }
149 
150 
168  public function innerJoinPrefix($fromAlias, $join, $alias, $condition = null)
169  {
170  $join = Connection::prefix($join);
171  return $this->innerJoin($fromAlias, $join, $alias, $condition);
172  }
173 
191  public function leftJoinPrefix($fromAlias, $join, $alias, $condition = null)
192  {
193  $join = Connection::prefix($join);
194  return $this->leftJoin($fromAlias, $join, $alias, $condition);
195  }
196 
214  public function rightJoinPrefix($fromAlias, $join, $alias, $condition = null)
215  {
216  $join = Connection::prefix($join);
217  return $this->rightJoin($fromAlias, $join, $alias, $condition);
218  }
219 }
innerJoinPrefix($fromAlias, $join, $alias, $condition=null)
rightJoinPrefix($fromAlias, $join, $alias, $condition=null)
updatePrefix($update=null, $alias=null)
fromPrefix($from, $alias=null)
static prefix($tablename= '')
Definition: Connection.php:139
leftJoinPrefix($fromAlias, $join, $alias, $condition=null)
deletePrefix($delete=null, $alias=null)
joinPrefix($fromAlias, $join, $alias, $condition=null)