| MDB2 |
| [ class tree: MDB2 ] [ index: MDB2 ] [ all elements ] |
|
Packages: MDB2 Classes:
DB
Files:DB_Error DB_result MDB2 MDB2_Datatype_xxx MDB2_Date MDB2_Driver_Common MDB2_Driver_Datatype_Common MDB2_Driver_Manager_Common MDB2_Driver_Manager_xxx MDB2_Driver_Reverse_Common MDB2_Error MDB2_Extended MDB2_Iterator MDB2_Native_xxx MDB2_Reverse_xxx MDB2_xxx
clitest.php
Common.php Common.php Common.php Console_TestListener.php Date.php Driver_Datatype_skeleton.php Driver_Manager_skeleton.php Driver_Native_skeleton.php Driver_Reverse_skeleton.php Driver_skeleton.php example.php Extended.php HTML_TestListener.php Iterator.php LOB.php MDB2.php MDB2_api_testcase.php MDB2_bugs_testcase.php MDB2_manager_testcase.php MDB2_native_testcase.php MDB2_reverse_testcase.php MDB2_usage_testcase.php peardb.php peardb_wrapper_example.php test.php testchoose.php testUtils.php |
[ Top ] $phptype =[line 1015] Database backend used in PHP (mysql, odbc etc.)
[ Top ] $row_limit = 0[line 1008] result limit used in the next query
[ Top ] $row_offset = 0[line 1001] result offset used in the next query
[ Top ] $supported = array()[line 917] list of all supported features of the given driver
[ Top ] $warnings = array()[line 980] warnings
[ Top ] Method DetailMDB2_Driver_Common (Constructor) [line 1072]beginTransaction [line 1560]
Start a transaction.
Overridden in child classes as:
[ Top ]
commit [line 1579]
Commit the database changes done during a transaction that is in progress. This function may only be called when auto-committing is disabled, otherwise it will fail. Therefore, a new transaction is implicitly started after committing the pending changes.
Overridden in child classes as:
[ Top ]
compareDefinition [line 2213]
Obtain an array of changes that may need to applied
Parameters:
[ Top ]
currID [line 2322]
returns the current id of a sequence
Overridden in child classes as:
Parameters:
[ Top ]
debug [line 1318]
set a debug message
Parameters:
[ Top ]
debugOutput [line 1334]
output debug info
[ Top ]
disconnect [line 1615]
Log out and disconnect from the database.
Overridden in child classes as:
[ Top ]
errorInfo [line 1126]
This method is used to collect information about an error
Overridden in child classes as:
Parameters:
[ Top ]
errorNative [line 1201]
returns an errormessage, provides by the database
[ Top ]
escape [line 1350]
Quotes a string so it can be safely used in a query. It will quote the text so it can safely be used within a query.
Parameters:
[ Top ]
getAfterID [line 2307]
returns the autoincrement ID if supported or $id
Parameters:
[ Top ]
getBeforeID [line 2269]
returns the next free id of a sequence if the RDBMS does not support auto increment
Parameters:
[ Top ]
getDatabase [line 1646]getDeclaration [line 2193]
Obtain DBMS specific SQL code portion needed to declare of the given type
Parameters:
[ Top ]
getDSN [line 1684]
return the DSN as a string
Parameters:
[ Top ]
getOption [line 1300]
returns the value of an option
Parameters:
[ Top ]
getSequenceName [line 2248]
adds sequence name formating to a sequence name
Parameters:
[ Top ]
getWarnings [line 1230]
get all warnings in reverse order. This means that the last warning is the first element in the array
[ Top ]
loadModule [line 1453]
loads a module
Parameters:
[ Top ]
nextID [line 2290]
returns the next free id of a sequence
Overridden in child classes as:
Parameters:
[ Top ]
prepare [line 2086]
Prepares a query for multiple execution with execute(). With some database backends, this is emulated. prepare() requires a generic query as string like 'INSERT INTO numbers VALUES(?,?)' or 'INSERT INTO numbers VALUES(:foo,:bar)'. The ? and :[a-zA-Z] and are placeholders which can be set using bindParam() and the query can be send off using the execute() method.
Parameters:
[ Top ]
query [line 1793]
Send a query to the database and return any results
Overridden in child classes as:
Parameters:
[ Top ]
queryAll [line 2438]
Execute the specified query, fetch all the rows of the result set into a two dimensional array and then frees the result set.
Parameters:
[ Top ]
queryCol [line 2401]
Execute the specified query, fetch the value from the first column of each row of the result set into an array and then frees the result set.
Parameters:
[ Top ]
queryOne [line 2344]
Execute the specified query, fetch the value from the first column of the first row of the result set and then frees the result set.
Parameters:
[ Top ]
queryRow [line 2373]
Execute the specified query, fetch the values from the first row of the result set into an array and then frees the result set.
Parameters:
[ Top ]
quote [line 2170]
Convert a text value into a DBMS specific format that is suitable to compose query statements.
Parameters:
[ Top ]
quoteIdentifier [line 1397]
Quote a string so it can be safely used as a table or column name Delimiting style depends on which database driver is being used. NOTE: just because you CAN use delimited identifiers doesn't mean you SHOULD use them. In general, they end up causing way more problems than they solve. Portability is broken by using the following characters inside delimited identifiers:
Parameters:
[ Top ]
raiseError [line 1159]
This method is used to communicate an error and invoke error callbacks etc. Basically a wrapper for PEAR::raiseError without the message string.
Parameters:
[ Top ]
replace [line 1996]
Execute a SQL REPLACE query. A REPLACE query is identical to a INSERT query, except that if there is already a row in the table with the same key field values, the REPLACE query just updates its values instead of inserting a new row. The REPLACE type of query does not make part of the SQL standards. Since pratically only MySQL implements it natively, this type of query is emulated through this method for other DBMS using standard types of queries inside a transaction to assure the atomicity of the operation.
Overridden in child classes as:
Parameters:
[ Top ]
resetWarnings [line 1214]rollback [line 1598]
Cancel any database changes done during a transaction that is in progress. This function may only be called when auto-committing is disabled, otherwise it will fail. Therefore, a new transaction is implicitly started after canceling the pending changes.
Overridden in child classes as:
[ Top ]
setDatabase [line 1630]
Select a different database
Parameters:
[ Top ]
setDSN [line 1661]
set the DSN
Parameters:
[ Top ]
setFetchMode [line 1255]
Sets which fetch mode should be used by default on queries on this connection
Parameters:
[ Top ]
setLimit [line 1885]
set the range of the next query
Parameters:
[ Top ]
setOption [line 1280]
set the option for the db class
Parameters:
[ Top ]
standaloneQuery [line 1719]
execute a query as database administrator
Parameters:
[ Top ]
subSelect [line 1923]
simple subselect emulation: leaves the query untouched for all RDBMS that support subselects
Overridden in child classes as:
Parameters:
[ Top ]
supports [line 2233]
Tell whether a DB implementation or its backend extension supports a given feature.
Parameters:
[ Top ]
_convertEmptyArrayValuesToNull [line 1431]
Convert all empty values in an array to null strings
Parameters:
[ Top ]
_doQuery [line 1771]
Execute a query
Parameters:
[ Top ]
_modifyQuery [line 1754]
Changes a query string for various DBMS specific reasons
Parameters:
[ Top ]
_rtrimArrayValues [line 1412]
Right trim all strings in an array
Parameters:
[ Top ]
_wrapResult [line 1834]
wrap a result set into the correct class
Parameters:
[ Top ]
__toString [line 1106]Documentation generated on Wed, 08 Jun 2005 09:30:29 -0400 by phpDocumentor 1.2.3. PEAR Logo Copyright © PHP Group 2004. |