|
Public Methods |
| | eZDBInterface ($parameters) |
| | setIsSQLOutputEnabled ($enabled) |
| | databaseName () |
| | socketPath () |
| | connectRetryCount () |
| | connectRetryWaitTime () |
| | supportedRelationTypeMask () |
| | supportedRelationTypes () |
| | charset () |
| | usesBuiltinEncoding () |
| & | query ($sql) |
| & | arrayQuery ($sql,$params=array()) |
| | lock ($table) |
| | unlock () |
| | begin () |
| | commit () |
| | rollback () |
| | relationCounts ($relationMask) |
| | relationCount ($relationType=EZ_DB_RELATION_TABLE) |
| | relationList ($relationType=EZ_DB_RELATION_TABLE) |
| | removeRelation ($relationName,$relationType) |
| | lastSerialID ($table,$column) |
| & | escapeString ($str) |
| | close () |
| | isConnected () |
| | createDatabase () |
| | setError () |
| | errorMessage () |
| | errorNumber () |
Protected Methods |
| | relationName ($relationType) |
Protected Attributes |
| | Server |
|
| SocketPath |
| | The socket path, used by MySQL.
|
|
| DB |
| | The current database name.
|
|
| DBConnection |
| | The current connection, false if not connection has been made.
|
|
| DBWriteConnection |
| | Contains the write database connection if used.
|
|
| User |
| | Stores the database connection user.
|
|
| Password |
| | Stores the database connection password.
|
|
| Charset |
| | The charset used for the current database.
|
|
| ConnectRetries |
| | The number of times to retry a connection if it fails.
|
|
| OutputTextCodec |
| | Instance of a textcodec which handles text conversion, may not be set if no builtin encoding is used.
|
|
| UseBuiltinEncoding |
| | True if a builtin encoder is to be used, this means that all input/output text is converted.
|
|
| OutputSQL |
| | Setting if SQL queries should be sent to debug output.
|
|
| IsConnected = false |
| | Contains true if we're connected to the database backend.
|
|
| NumQueries = 0 |
| | Contains number of queries sended to DB.
|
|
| StartTime |
| | The start time of the timer.
|
|
| EndTime |
| | The end time of the tiemr.
|
|
| TimeTaken |
| | The total number of milliseconds the timer took.
|
|
| ErrorMessage |
| | The database error message of the last executed function.
|
|
| ErrorNumber |
| | The database error message number of the last executed function.
|
|
| RecordError = true |
| | If true then ErrorMessage and ErrorNumber get filled.
|
|
| UsePersistentConnection = false |
| | If true then the database connection should be persistent.
|
|
| UserSlaveServer |
| | Contains true if slave servers are enabled.
|
|
| SlaveDB |
| | The slave database name.
|
|
| SlaveServer |
| | The slave server name.
|
|
| SlaveUser |
| | The slave database user.
|
|
| SlavePassword |
| | The slave database user password.
|
Private Methods |
| | reportQuery ($class,$sql,$numRows,$timeTaken) |
| | startTimer () |
| | endTimer () |
| | startTime () |
| | endTime () |
| | timeTaken () |