OXID eShop CE  4.10.2
 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 
204  public function selectLimit($sqlSelect, $rowCount = -1, $offset = -1, $parameters = array(), $executeOnSlave = true);
205 
229  public function execute($query, $parameters = array());
230 
252  public function quote($value);
253 
267  public function quoteArray($array);
268 
276  public function metaColumns($table);
277 
283  public function startTransaction();
284 
290  public function commitTransaction();
291 
297  public function rollbackTransaction();
298 
312  public function setTransactionIsolationLevel($level);
313 }