25 $this->_oDb = $oConnection;
35 $this->_oDb->setFetchMode($iFetchMode);
48 public function getDb($blType =
true)
63 public function getOne($sSql, $aParams =
false, $blType =
true)
65 return $this->
getDb($blType)->getOne($sSql, $aParams);
77 public function getArray($sSql, $aParams =
false, $blType =
true)
79 return $this->
getDb($blType)->getArray($sSql, $aParams);
91 public function getRow($sSql, $aParams =
false, $blType =
true)
93 return $this->
getDb($blType)->getRow($sSql, $aParams);
105 public function getAll($sSql, $aParams =
false, $blType =
true)
108 return $this->
getDb($blType)->getAll($sSql, $aParams);
120 public function select($sSql, $aParams =
false, $blType =
true)
122 return $this->
getDb($blType)->execute($sSql, $aParams);
134 public function getAssoc($sSql, $aParams =
false, $blType =
true)
136 return $this->
getDb($blType)->getAssoc($sSql, $aParams);
148 public function getCol($sSql, $aParams =
false, $blType =
true)
150 return $this->
getDb($blType)->getCol($sSql, $aParams);
164 public function selectLimit($sSql, $iRows = -1, $iOffset = -1, $aParams =
false, $blType =
true)
166 return $this->
getDb($blType)->SelectLimit($sSql, $iRows, $iOffset, $aParams);
177 public function execute($sSql, $aParams =
false)
179 return $this->
getDb(
false)->execute($sSql, $aParams);
190 public function query($sSql, $aParams =
false)
192 return $this->
getDb(
false)->Query($sSql, $aParams);
202 return $this->
getDb(
false)->Affected_Rows();
212 return $this->
getDb(
false)->ErrorNo();
222 return $this->
getDb(
false)->ErrorMsg();
234 return $this->
getDb(
false)->qstr($sValue);
246 return $this->
getDb(
false)->quote($sValue);
258 foreach ($aStrArray as $sKey => $sString) {
259 $aStrArray[$sKey] = $this->
quote($sString);
274 return $this->
getDb(
false)->MetaColumns($sTable);
287 return $this->
getDb(
false)->MetaColumnNames($sTable, $blNumIndexes);
297 return $this->
getDb(
false)->execute(
'START TRANSACTION');
307 return $this->
getDb(
false)->execute(
'COMMIT');
317 return $this->
getDb(
false)->execute(
'ROLLBACK');
332 $aLevels = array(
'READ UNCOMMITTED',
'READ COMMITTED',
'REPEATABLE READ',
'SERIALIZABLE');
333 if (in_array(strtoupper($sLevel), $aLevels)) {
334 $blResult = $this->
getDb(
false)->execute(
'SET TRANSACTION ISOLATION LEVEL ' . $sLevel);
345 public function UI($iPollSecs = 5)
347 $this->
getDb(
false)->UI($iPollSecs);
357 return $this->
getDb(
false)->Insert_ID();