27 $this->_oDb = $oConnection;
39 $this->_oDb->setFetchMode( $iFetchMode );
50 public function getDb( $blType =
true )
65 public function getOne( $sSql, $aParams =
false, $blType =
true )
67 return $this->
getDb( $blType )->getOne( $sSql, $aParams );
79 public function getArray( $sSql, $aParams =
false, $blType =
true )
81 return $this->
getDb( $blType )->getArray( $sSql, $aParams );
93 public function getRow( $sSql, $aParams =
false, $blType =
true )
95 return $this->
getDb( $blType )->getRow( $sSql, $aParams );
107 public function getAll( $sSql, $aParams =
false, $blType =
true )
110 return $this->
getDb( $blType )->getAll( $sSql, $aParams );
122 public function select( $sSql, $aParams =
false, $blType =
true )
124 return $this->
getDb( $blType )->execute( $sSql, $aParams );
136 public function getAssoc( $sSql, $aParams =
false, $blType =
true )
138 return $this->
getDb( $blType )->getAssoc( $sSql, $aParams );
150 public function getCol( $sSql, $aParams =
false, $blType =
true )
152 return $this->
getDb( $blType )->getCol( $sSql, $aParams );
166 public function selectLimit( $sSql, $iRows=-1, $iOffset=-1, $aParams =
false, $blType =
true )
168 return $this->
getDb( $blType )->SelectLimit( $sSql, $iRows, $iOffset, $aParams );
179 public function execute( $sSql, $aParams =
false )
181 return $this->
getDb(
false )->execute( $sSql, $aParams );
192 public function query( $sSql, $aParams =
false )
194 return $this->
getDb(
false )->Query( $sSql, $aParams );
204 return $this->
getDb(
false )->Affected_Rows();
214 return $this->
getDb(
false )->ErrorNo();
224 return $this->
getDb(
false )->ErrorMsg();
234 public function qstr( $sValue )
236 return $this->
getDb(
false )->qstr( $sValue );
248 return $this->
getDb(
false )->quote( $sValue );
260 return $this->
getDb(
false )->MetaColumns( $sTable );
273 return $this->
getDb(
false )->MetaColumnNames( $sTable, $blNumIndexes );
283 return $this->
getDb(
false )->execute(
'START TRANSACTION' );
293 return $this->
getDb(
false )->execute(
'COMMIT' );
303 return $this->
getDb(
false )->execute(
'ROLLBACK' );
318 $aLevels = array(
'READ UNCOMMITTED',
'READ COMMITTED',
'REPEATABLE READ',
'SERIALIZABLE' );
319 if ( in_array( strtoupper( $sLevel ), $aLevels ) ) {
320 $blResult = $this->
getDb(
false )->execute(
'SET TRANSACTION ISOLATION LEVEL ' . $sLevel );
333 public function UI( $iPollSecs=5 )
335 $this->
getDb(
false )->UI( $iPollSecs );