OXID eShop CE  4.10.0
 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 
40  public function setFetchMode($fetchMode);
41 
56  public function getOne($query, $parameters = array(), $executeOnSlave = true);
57 
85  public function getRow($sqlSelect, $parameters = array(), $executeOnSlave = true);
86 
107  public function getCol($sqlSelect, $parameters = array(), $executeOnSlave = true);
108 
136  public function getAll($query, $parameters = array(), $executeOnSlave = true);
137 
164  public function select($sqlSelect, $parameters = array(), $executeOnSlave = true);
165 
197  public function selectLimit($sqlSelect, $rowCount = -1, $offset = -1, $parameters = array(), $executeOnSlave = true);
198 
222  public function execute($query, $parameters = array());
223 
245  public function quote($value);
246 
260  public function quoteArray($array);
261 
269  public function metaColumns($table);
270 
276  public function startTransaction();
277 
283  public function commitTransaction();
284 
290  public function rollbackTransaction();
291 
305  public function setTransactionIsolationLevel($level);
306 }