[ Index ]
 

Code source de Symfony 1.0.0

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/lib/vendor/creole/drivers/odbc/ -> ODBCConnection.php (sommaire)

(pas de description)

Poids: 362 lignes (11 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 2 classes

ODBCConnection:: (18 méthodes):
  connect()
  close()
  __destruct()
  nativeError()
  getAdapter()
  getDatabaseInfo()
  getIdGenerator()
  createResultSet()
  prepareStatement()
  createStatement()
  prepareCall()
  applyLimit()
  executeQuery()
  executeUpdate()
  beginTrans()
  commitTrans()
  rollbackTrans()
  getUpdateCount()

ODBCResultResource:: (3 méthodes):
  __construct()
  __destruct()
  getHandle()


Classe: ODBCConnection  - X-Ref

ODBC implementation of Connection.

connect($dsninfo, $flags = 0)   X-Ref


close()   X-Ref


__destruct()   X-Ref
Shouldn't this be in ConnectionCommon.php?


nativeError()   X-Ref
Returns a formatted ODBC error string.

return: string

getAdapter()   X-Ref
Returns driver-specific ODBCAdapter.

return: ODBCAdapter

getDatabaseInfo()   X-Ref


getIdGenerator()   X-Ref


createResultSet($odbcresult, $fetchmode)   X-Ref
Creates the appropriate ResultSet

return: ResultSet

prepareStatement($sql)   X-Ref


createStatement()   X-Ref


prepareCall($sql)   X-Ref


applyLimit(&$sql, $offset, $limit)   X-Ref


executeQuery($sql, $fetchmode = null)   X-Ref


executeUpdate($sql)   X-Ref


beginTrans()   X-Ref
Start a database transaction.

return: void

commitTrans()   X-Ref
Commit the current transaction.

return: void

rollbackTrans()   X-Ref
Roll back (undo) the current transaction.

return: void

getUpdateCount()   X-Ref


Classe: ODBCResultResource  - X-Ref

This is a simple wrapper class to manage the lifetime of an ODBC result resource
(returned by odbc_exec(), odbc_execute(), etc.) We use a separate class because
the resource can be shared by both ODBCConnection and an ODBCResultSet at the
same time. ODBCConnection hangs on to the last result resource to be used in
its getUpdateCount() method. It also passes this resource to new instances of
ODBCResultSet. At some point the resource has to be cleaned up via
odbc_free_result(). Using this class as a wrapper, we can pass around multiple
references to the same resource. PHP's reference counting mechanism will clean
up the resource when its no longer used via ODBCResultResource::__destruct().

__construct($handle)   X-Ref


__destruct()   X-Ref
Pas de description

getHandle()   X-Ref
Pas de description



Généré le : Fri Mar 16 22:42:14 2007 par Balluche grâce à PHPXref 0.7