25 $this->_oDb = $oConnection;
35 $this->_oDb->setFetchMode($iFetchMode);
46 public function getDb($blType =
true)
61 public function getOne($sSql, $aParams =
false, $blType =
true)
63 return $this->
getDb($blType)->getOne($sSql, $aParams);
75 public function getArray($sSql, $aParams =
false, $blType =
true)
77 return $this->
getDb($blType)->getArray($sSql, $aParams);
89 public function getRow($sSql, $aParams =
false, $blType =
true)
91 return $this->
getDb($blType)->getRow($sSql, $aParams);
103 public function getAll($sSql, $aParams =
false, $blType =
true)
106 return $this->
getDb($blType)->getAll($sSql, $aParams);
118 public function select($sSql, $aParams =
false, $blType =
true)
120 return $this->
getDb($blType)->execute($sSql, $aParams);
132 public function getAssoc($sSql, $aParams =
false, $blType =
true)
134 return $this->
getDb($blType)->getAssoc($sSql, $aParams);
146 public function getCol($sSql, $aParams =
false, $blType =
true)
148 return $this->
getDb($blType)->getCol($sSql, $aParams);
162 public function selectLimit($sSql, $iRows = -1, $iOffset = -1, $aParams =
false, $blType =
true)
164 return $this->
getDb($blType)->SelectLimit($sSql, $iRows, $iOffset, $aParams);
175 public function execute($sSql, $aParams =
false)
177 return $this->
getDb(
false)->execute($sSql, $aParams);
188 public function query($sSql, $aParams =
false)
190 return $this->
getDb(
false)->Query($sSql, $aParams);
200 return $this->
getDb(
false)->Affected_Rows();
210 return $this->
getDb(
false)->ErrorNo();
220 return $this->
getDb(
false)->ErrorMsg();
232 return $this->
getDb(
false)->qstr($sValue);
244 return $this->
getDb(
false)->quote($sValue);
256 foreach ($aStrArray as $sKey => $sString) {
257 $aStrArray[$sKey] = $this->
quote($sString);
272 return $this->
getDb(
false)->MetaColumns($sTable);
285 return $this->
getDb(
false)->MetaColumnNames($sTable, $blNumIndexes);
295 return $this->
getDb(
false)->execute(
'START TRANSACTION');
305 return $this->
getDb(
false)->execute(
'COMMIT');
315 return $this->
getDb(
false)->execute(
'ROLLBACK');
330 $aLevels = array(
'READ UNCOMMITTED',
'READ COMMITTED',
'REPEATABLE READ',
'SERIALIZABLE');
331 if (in_array(strtoupper($sLevel), $aLevels)) {
332 $blResult = $this->
getDb(
false)->execute(
'SET TRANSACTION ISOLATION LEVEL ' . $sLevel);
343 public function UI($iPollSecs = 5)
345 $this->
getDb(
false)->UI($iPollSecs);
355 return $this->
getDb(
false)->Insert_ID();