Class: AdoDBConnection

Source Location: /CORE/system/classes/sql/AdoDBConnection.php

Class AdoDBConnection

Class Overview

Class used for connecting to a Database by using the AdoDB Framework.

This is the ultimate way of using BIGACE with none MySQL Databases!

Located in /CORE/system/classes/sql/AdoDBConnection.php [line 42]

DatabaseConnection
   |
   --AdoDBConnection
Author(s):
  • Kevin Papst
Information Tags:
Version:  $Id: AdoDBConnection.php,v 1.6 2008/09/24 20:20:13 kpapst Exp $
Copyright:  Copyright (C) Kevin Papst
License:  GNU Public License

Methods

[ Top ]
Inherited Properties, Constants, and Methods
Inherited Properties Inherited Methods Inherited Constants

Inherited From DatabaseConnection

DatabaseConnection::close()
Closes the currently used Connection.
DatabaseConnection::escape()
Escapes a value to be used in any SQL Statement.
DatabaseConnection::freeResult()
Free the given SQL resource.
DatabaseConnection::getError()
Return a DBError or null.
DatabaseConnection::insert()
Inserts one or more rows and returns the result.
DatabaseConnection::isConnected()
Returns whether we are connected to the Database or not.
DatabaseConnection::sql()
Returns the Result of this SQL Query.

[ Top ]
Method Summary
AdoDBConnection   AdoDBConnection()   Connects to the DB by using the configured Database values.
void   close()   Closes the Database Connection. The Results must be closed manually!
void   freeResult()   Frees the given Result.
ADONewConnection   getADONewConnection()   Returns the original ADONewConnection Object to be used by other AdoDB Components.
void   insert()   Inserts a new DB entry and if exists returns the auto increment value.
boolean   isConnected()   Returns whether we are connected to a DB or not.
void   sql()   Executes any SQL Statement (mysql_query).

[ Top ]
Methods
Constructor AdoDBConnection  [line 52]

  AdoDBConnection AdoDBConnection( )

Connects to the DB by using the configured Database values.



[ Top ]
close  [line 129]

  void close( )

Closes the Database Connection. The Results must be closed manually!



Redefinition of:
DatabaseConnection::close()
Closes the currently used Connection.

[ Top ]
freeResult  [line 137]

  void freeResult( $result  )

Frees the given Result.

Parameters:
   $result: 


Redefinition of:
DatabaseConnection::freeResult()
Free the given SQL resource.

[ Top ]
getADONewConnection  [line 147]

  ADONewConnection getADONewConnection( )

Returns the original ADONewConnection Object to be used by other AdoDB Components.


API Tags:
Return:  the ADONewConnection object for further usage


[ Top ]
insert  [line 115]

  void insert( $query  )

Inserts a new DB entry and if exists returns the auto increment value.

Parameters:
   $query: 


Redefinition of:
DatabaseConnection::insert()
Inserts one or more rows and returns the result.

[ Top ]
isConnected  [line 96]

  boolean isConnected( )

Returns whether we are connected to a DB or not.


API Tags:
Return:  true on successful Connection


Redefinition of:
DatabaseConnection::isConnected()
Returns whether we are connected to the Database or not.

[ Top ]
sql  [line 103]

  void sql( $query  )

Executes any SQL Statement (mysql_query).

Parameters:
   $query: 


Redefinition of:
DatabaseConnection::sql()
Returns the Result of this SQL Query.

[ Top ]