Packageindex Classtrees Modulegroups Elementlist Report XML Files

File: c:/www/apache/doc2//pear/DB/odbc.php
PEAR 2000/12/03 -

DB_odbc

DB_common
   |
  +-- DB_odbc

DB_common is a base class for DB implementations, and should be

 

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()

Warning: documentation is missing.

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()

Warning: documentation is missing.
void

query( $query)

Warning: documentation is missing.
void

fetchRow( $result)

Warning: documentation is missing.
void

freeResult( $result)

Warning: documentation is missing.
void

quoteString(string $string)

Quotes a string so it can be safely used within string delimitersWarning: documentation is missing.

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( )

 

Warning: documentation is missing.

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
Warning: documentation is missing.
$user
Warning: documentation is missing.
$pw
Warning: documentation is missing.
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
Warning: documentation is missing.
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( )

 

Warning: documentation is missing.

Returns void


query

private void query( $query )

 

Warning: documentation is missing.

Parameter
$query
Warning: documentation is missing.
Returns void


fetchRow

private void fetchRow( $result )

 

Warning: documentation is missing.

Parameter
$result
Warning: documentation is missing.
Returns void


freeResult

private void freeResult( $result )

 

Warning: documentation is missing.

Parameter
$result
Warning: documentation is missing.
Returns void


quoteString

private void quoteString( string $string )

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

Warning: documentation is missing.

Parameter
string $string
input string to quote
Returns void


Private Field Details

$connection

private unknown $connection

>><<



$phptype

private unknown $phptype

>><<




Packageindex Classtrees Modulegroups Elementlist Report XML Files
PHPDoc 1.0beta