Packageindex Classtrees Modulegroups Elementlist Report XML Files

File: /home/cch/www/pear/DB/odbc.php
PEAR Repository -

DB_odbc

DB_common
   |
  +-- DB_odbc

DB_common is a base class for DB implementations, and should be
inherited by all such.

 

private class DB_odbc extends DB_common

DB_common is a base class for DB implementations, and should be
inherited by all such.

 

Methods inherited from DB_common

provides, errorcode, errormessage, &raiseerror, seterrorhandling, setfetchmode, prepare, execute_emulate_query, executemultiple, &getone, &getrow, &getcol, &getassoc, &getall, tostring, db_common

Public Method Summary

void

DB_odbc()

Private Method Summary

int

connect( &$dsn, $user, $pw)

Connect to a database and log in as the specified user.
int

simpleQuery( $query)

Send a query to ODBC and return the results as a ODBC resource
void

disconnect()

void

query( $query)

void

fetchRow( $result)

void

freeResult( $result)

void

quoteString(string $string)

Quotes a string so it can be safely used within string delimiters

Fields inherited from DB_common

$features, $errorcode_map, $type, $prepare_tokens, $prepare_types, $prepare_maxstmt, $error_mode, $error_level, $error_callback, $last_query, $fetchmode

Private Field Summary

unknown

$connection

unknown

$phptype

Public Method Details

DB_odbc

public void DB_odbc( )

 

Returns void


Private Method Details

connect

private int connect( &$dsn, $user, $pw )

  Connect to a database and log in as the specified user.

Parameter
&$dsn
$user
$pw
Returns int

DB_OK on success, a DB error code on failure


simpleQuery

private int simpleQuery( $query )

  Send a query to ODBC and return the results as a ODBC resource
identifier.

Parameter
$query
Returns int

returns a valid ODBC result for successful SELECT
queries, DB_OK for other successful queries. A DB error code
is returned on failure.


disconnect

private void disconnect( )

 

Returns void


query

private void query( $query )

 

Parameter
$query
Returns void


fetchRow

private void fetchRow( $result )

 

Parameter
$result
Returns void


freeResult

private void freeResult( $result )

 

Parameter
$result
Returns void


quoteString

private void quoteString( string $string )

  Quotes a string so it can be safely used within string delimiters
in a query.

Parameter
string $string
the input string to quote
Returns void


Private Field Details

$connection

private unknown $connection

>>unknown<<


$phptype

private unknown $phptype

>>unknown<<



Packageindex Classtrees Modulegroups Elementlist Report XML Files
PHPDoc 1.0beta