Private Method Details |
quoteString |
private string quoteString( string $string )
|
|
Quotes a string so it can be safely used within string delimiters
in a query.
|
Parameter |
|
string |
$string |
|
|
input string to quote |
|
Returns |
string the quoted string |
|
provides |
private bool provides( $feature )
|
|
Tell whether a DB implementation or its backend extension
supports a given feature.
|
Parameter |
|
|
$feature |
|
|
Warning: documentation is missing. |
|
Returns |
bool whether this DB implementation supports $feature |
|
errorCode |
private int errorCode( string $nativecode )
|
|
Map native error codes to DB's portable ones. Requires that
the DB implementation's constructor fills in the $errorcode_mapproperty.
|
Parameter |
|
string |
$nativecode |
|
|
integer) |
|
Returns |
int a portable DB error code, or FALSE if this DB
implementation has no mapping for the given error code. |
|
errorMessage |
private string errorMessage( $dbcode )
|
|
Map a DB error code to a textual message. This is actually
just a wrapper for DB::errorMessage().
|
Parameter |
|
|
$dbcode |
|
|
Warning: documentation is missing. |
|
Returns |
string the corresponding error message, of FALSE
if the error code was unknown |
|
&raiseError |
private void &raiseError( string $code, boolean $mode, boolean $level, boolean $debuginfo, boolean $nativecode )
|
|
This method is called by DB to generate an error.
|
Parameter |
|
string |
$code |
|
|
Warning: documentation is missing. |
|
|
boolean |
$mode |
|
|
Warning: documentation is missing. |
|
|
boolean |
$level |
|
|
Warning: documentation is missing. |
|
|
boolean |
$debuginfo |
|
|
Warning: documentation is missing. |
|
|
boolean |
$nativecode |
|
|
Warning: documentation is missing. |
|
Returns |
void |
|
setErrorHandling |
private void setErrorHandling( int $mode, [ mixed $options ] )
|
|
Sets how errors generated by this DB object should be handled.
|
Parameter |
|
int |
$mode |
|
|
of PEAR_ERROR_RETURN, PEAR_ERROR_PRINT,
PEAR_ERROR_TRIGGER, PEAR_ERROR_DIE or
PEAR_ERROR_CALLBACK. |
|
|
mixed |
$options |
= >>false<< |
|
unless $mode is PEAR_ERROR_TRIGGER or
PEAR_ERROR_CALLBACK. When $mode is PEAR_ERROR_TRIGGER,
this parameter is expected to be an integer among
E_USER_NOTICE, E_USER_WARNING or E_USER_ERROR. When
$mode is PEAR_ERROR_CALLBACK, this parameter is expected
to be the callback function or method. A callback
function is a string with the name of the function, a
callback method is an array of two elements: the element
at index 0 is an object, and the element at index 1 is
the name of the method to call in the object. |
|
Returns |
void |
|
setFetchMode |
private void setFetchMode( int $fetchmode )
|
|
Sets which fetch mode should be used by default on queries
on this connection.
|
Parameter |
|
int |
$fetchmode |
|
|
or
DB_FETCHMODE_ASSOC, possibly bit-wise OR'ed with
DB_FETCHMODE_FLIPPED. |
|
Returns |
void |
|
prepare |
private void prepare( $query )
|
|
Prepares a query for multiple execution with execute(). With
PostgreSQL, this is emulated.
|
Parameter |
|
|
$query |
|
|
Warning: documentation is missing. |
|
Returns |
void |
|
execute_emulate_query |
private string execute_emulate_query( $stmt, boolean $data )
|
|
|
Parameter |
|
|
$stmt |
|
|
Warning: documentation is missing. |
|
|
boolean |
$data |
|
|
Warning: documentation is missing. |
|
Returns |
string containing the real query run when emulating
prepare/execute. A DB error code is returned on failure. |
|
executeMultiple |
private void executeMultiple( $stmt, &$data )
|
|
This function does several execute() calls on the same
statement handle. $data must be an array indexed numericallyfrom 0, one execute call is done for every "row" in the array.If an error occurs during execute(), executeMultiple() does notexecute the unfinished rows, but rather returns that error.
|
Parameter |
|
|
$stmt |
|
|
Warning: documentation is missing. |
|
|
|
&$data |
|
|
Warning: documentation is missing. |
|
Returns |
void |
|
toString |
private void toString( )
|
|
Warning: documentation is missing.
|
Returns |
void |
|