Transaction Engine 3 Application Programming Interface
[ class tree: Transaction Engine 3 Application Programming Interface ] [ index: Transaction Engine 3 Application Programming Interface ] [ all elements ]

Class: KT_Connection

Source Location: /common/lib/db/KT_Connection.class.php

Class Overview


The connection class (used on PHP - MySQL Server model)


Variables

Methods



Class Details

[line 9]
The connection class (used on PHP - MySQL Server model)



[ Top ]


Class Variables

$databaseType =  "mysql"

[line 32]

for ADODB compatibility



Tags:

access:  public

Type:   string


[ Top ]

$servermodel =  "mysql"

[line 25]


Type:   mixed


[ Top ]



Class Methods


constructor KT_Connection [line 41]

KT_Connection KT_Connection( object ResourceID &$connection, string $databasename)

The constructor

Sets the connection and the database name




Tags:

access:  public


Parameters:

object ResourceID   &$connection  
string   $databasename  

[ Top ]

method ErrorMsg [line 84]

string ErrorMsg( )

Gets the error message



Tags:

access:  public


[ Top ]

method Execute [line 54]

object unknown Execute( string $sql)

Executes a SQL statement



Tags:

return:  true on success response Resource ID if one is returned by the wrapper function
access:  public


Parameters:

string   $sql  

[ Top ]

method Insert_ID [line 93]

object unknown Insert_ID( mixed $table, mixed $pKeyCol)

Gets the auto-generated inserted id (if any)



Tags:

access:  public


[ Top ]

method MySQL_Execute [line 73]

mysql MySQL_Execute( string $sql)

Executes a SQL statement



Tags:

return:  resource true on success response MYSQL Resource ID
access:  public


Parameters:

string   $sql  

[ Top ]



Documentation generated on Tue, 6 Dec 2005 15:11:27 +0200 by phpDocumentor 1.3.0RC3