|
XCL Web Application Platform 2.5.0
The XoopsCube Legacy Project
|
Public Member Functions | |
| connect ($selectdb=true) | |
| genId ($sequence) | |
| fetchRow ($result) | |
| fetchArray ($result) | |
| fetchBoth ($result) | |
| getInsertId () | |
| getRowsNum ($result) | |
| getAffectedRows () | |
| close () | |
| freeRecordSet ($result) | |
| error () | |
| errno () | |
| quoteString ($str) | |
| & | queryF ($sql, $limit=0, $start=0) |
| & | query ($sql, $limit=0, $start=0) |
| queryFromFile ($file) | |
| getFieldName ($result, $offset) | |
| getFieldType ($result, $offset) | |
| getFieldsNum ($result) | |
| prepare ($query) | |
| bind_param () | |
| & | execute () |
| & | executeF () |
Data Fields | |
| $conn | |
| $mPrepareQuery =null | |
Definition at line 27 of file mysqldatabase.php.
| bind_param | ( | ) |
Emulates bind_param(), but this is TEST API.
Definition at line 336 of file mysqldatabase.php.
| close | ( | ) |
Close MySQL connection
Definition at line 157 of file mysqldatabase.php.
| connect | ( | $selectdb = true | ) |
connect to the database
| bool | $selectdb | select the database now? |
Definition at line 47 of file mysqldatabase.php.
| errno | ( | ) |
Returns the numerical value of the error message from previous MySQL operation
Definition at line 188 of file mysqldatabase.php.
| error | ( | ) |
Returns the text of the error message from previous MySQL operation
Definition at line 178 of file mysqldatabase.php.
| & execute | ( | ) |
Executes prepared SQL with query(), but this is TEST API.
Definition at line 378 of file mysqldatabase.php.
| & executeF | ( | ) |
Executes prepared SQL with queryF(), but this is TEST API.
Definition at line 389 of file mysqldatabase.php.
| fetchArray | ( | $result | ) |
Fetch a result row as an associative array
| $result |
Definition at line 106 of file mysqldatabase.php.
| fetchBoth | ( | $result | ) |
Fetch a result row as an associative array
| $result |
Definition at line 117 of file mysqldatabase.php.
| fetchRow | ( | $result | ) |
Get a result row as an enumerated array
| resource | $result |
Definition at line 95 of file mysqldatabase.php.
| freeRecordSet | ( | $result | ) |
will free all memory associated with the result identifier result.
| resource | query result |
Definition at line 168 of file mysqldatabase.php.
| genId | ( | $sequence | ) |
generate an ID for a new row
This is for compatibility only. Will always return 0, because MySQL supports autoincrement for primary keys.
| string | $sequence | name of the sequence from which to get the next ID |
Definition at line 84 of file mysqldatabase.php.
| getAffectedRows | ( | ) |
| getFieldName | ( | $result, | |
| $offset ) |
Get field name
| resource | $result | query result |
| int | numerical field index |
Definition at line 283 of file mysqldatabase.php.
| getFieldsNum | ( | $result | ) |
Get number of fields in result
| resource | $result | query result |
Definition at line 306 of file mysqldatabase.php.
| getFieldType | ( | $result, | |
| $offset ) |
Get field type
| resource | $result | query result |
| int | $offset | numerical field index |
Definition at line 295 of file mysqldatabase.php.
| getInsertId | ( | ) |
Get the ID generated from the previous INSERT operation
Definition at line 127 of file mysqldatabase.php.
| getRowsNum | ( | $result | ) |
Get number of rows in result
| resource | query result |
Definition at line 138 of file mysqldatabase.php.
| prepare | ( | $query | ) |
Emulates prepare(), but this is TEST API.
| $query |
Definition at line 316 of file mysqldatabase.php.
| & query | ( | $sql, | |
| $limit = 0, | |||
| $start = 0 ) |
perform a query
This method is empty and does nothing! It should therefore only be used if nothing is exactly what you want done! ;-)
| string | $sql | a valid MySQL query |
| int | $limit | number of records to return |
| int | $start | offset of first record to return |
@abstract
Reimplemented in XoopsMySQLDatabaseProxy, and XoopsMySQLDatabaseSafe.
Definition at line 246 of file mysqldatabase.php.
| & queryF | ( | $sql, | |
| $limit = 0, | |||
| $start = 0 ) |
perform a query on the database
| string | $sql | a valid MySQL query |
| int | $limit | number of records to return |
| int | $start | offset of first record to return |
Definition at line 214 of file mysqldatabase.php.
| queryFromFile | ( | $file | ) |
perform queries from SQL dump file in a batch
| string | $file | file path to an SQL dump file |
Definition at line 257 of file mysqldatabase.php.
| quoteString | ( | $str | ) |
Returns escaped string text with single quotes around it to be safely stored in database
| string | $str | unescaped string text |
Definition at line 199 of file mysqldatabase.php.
| $conn |
Definition at line 33 of file mysqldatabase.php.
| $mPrepareQuery =null |
Definition at line 39 of file mysqldatabase.php.