Class DatabaseConnection

Description

Interface for Database Connections.

The Implementation has to overwrite all mentioned methods in a proper way.

  • version: $Id: DatabaseConnection.php,v 1.3 2006/11/26 22:04:35 kpapst Exp $
  • copyright: Copyright (C) 2002-2006 Kevin Papst
  • author: Kevin Papst
  • license: GNU Public License


			
Direct descendents
Class Description
SimpleMySQLConnection Implementation of the DatabaseConnection to connect to a MySQL Database.
AdoDBConnection Class used for connecting to a Database by using the AdoDB Framework.
Method Summary
mixed close ()
mixed freeResult ( $result)
mixed insert ( $statement)
boolean isConnected ()
Result sql ( $statement)
Methods
close (line 67)

Closes the currently used Connection.

  • return: the result of this close attempt
mixed close ()

Redefined in descendants as:
freeResult (line 76)

Free the given SQL resource.

  • return: the result
mixed freeResult ( $result)
  • $result

Redefined in descendants as:
insert (line 59)

Inserts one or more rows and returns the result.

  • return: the result of this insert
mixed insert ( $statement)
  • $statement

Redefined in descendants as:
isConnected (line 43)

Returns whether we are connected to the Database or not.

  • return: the connection state
boolean isConnected ()

Redefined in descendants as:
sql (line 51)

Returns the Result of this SQL Query.

  • return: the result of this Query
Result sql ( $statement)
  • $statement

Redefined in descendants as:

Documentation generated by phpDocumentor 1.3.1