OXID eShop CE  4.10.4
 All Classes Namespaces Files Functions Variables Pages
DatabaseInterface.php
Go to the documentation of this file.
1 <?php
2 
3 require_once __DIR__ . DIRECTORY_SEPARATOR . 'ResultSetInterface.php';
4 
9 {
10 
16  const FETCH_MODE_DEFAULT = 0;
17 
22  const FETCH_MODE_NUM = 1;
23 
25  const FETCH_MODE_ASSOC = 2;
26 
28  const FETCH_MODE_BOTH = 3;
29 
35  public function forceMasterConnection();
36 
47  public function setFetchMode($fetchMode);
48 
63  public function getOne($query, $parameters = array(), $executeOnSlave = true);
64 
92  public function getRow($sqlSelect, $parameters = array(), $executeOnSlave = true);
93 
114  public function getCol($sqlSelect, $parameters = array(), $executeOnSlave = true);
115 
143  public function getAll($query, $parameters = array(), $executeOnSlave = true);
144 
171  public function select($sqlSelect, $parameters = array(), $executeOnSlave = true);
172 
206  public function selectLimit($sqlSelect, $rowCount = -1, $offset = -1, $parameters = array(), $executeOnSlave = true);
207 
231  public function execute($query, $parameters = array());
232 
254  public function quote($value);
255 
269  public function quoteArray($array);
270 
278  public function metaColumns($table);
279 
285  public function startTransaction();
286 
292  public function commitTransaction();
293 
299  public function rollbackTransaction();
300 
314  public function setTransactionIsolationLevel($level);
315 }