eZPublish  4.5
eZDBInterface Class Referenceabstract

The eZDBInterface defines the interface for all database implementations. More...

+ Inheritance diagram for eZDBInterface:

Public Member Functions

 arrayQuery ($sql, $params=array(), $server=false)
 
 attribute ($name)
 
 attributes ()
 
 availableDatabases ()
 
 begin ()
 
 beginQuery ()
 
 bindingType ()
 
 bindVariable ($value, $fieldDef=false)
 
 bitAnd ($arg1, $arg2)
 
 bitOr ($arg1, $arg2)
 
 charset ()
 
 checkCharset ($charset, &$currentCharset)
 
 close ()
 
 commit ()
 
 commitQuery ()
 
 concatString ($strings=array())
 
 connectRetryCount ()
 
 connectRetryWaitTime ()
 
 createDatabase ($dbName)
 
 createTempTable ($createTableQuery= '', $server=self::SERVER_SLAVE)
 
 databaseClientVersion ()
 
 databaseName ()
 
 databaseServerVersion ()
 
 dropTempTable ($dropTableQuery= '', $server=self::SERVER_SLAVE)
 
 dropTempTableList ($tableList, $server=self::SERVER_SLAVE)
 
 errorMessage ()
 
 errorNumber ()
 
 escapeString ($str)
 
 eZDBInterface ($parameters)
 
 eZTableList ($server=self::SERVER_MASTER)
 
 generateFailedTransactionStack ()
 
 generateSQLINStatement ($elements, $columnName= '', $not=false, $unique=true, $type=false)
 This function can be used to create a SQL IN statement to be used in a WHERE clause: More...
 
 generateUniqueTempTableName ($pattern, $randomizeIndex=false, $server=self::SERVER_SLAVE)
 
 hasAttribute ($name)
 
 hasRequiredServerVersion ($minVersion, $name=false)
 
 implodeWithTypeCast ($glue, &$pieces, $type)
 
 insertFile ($path, $sqlFile, $usePathType=true)
 
 invalidateTransaction ()
 
 isCharsetSupported ($charset)
 
 isTransactionValid ()
 
 lastSerialID ($table=false, $column=false)
 
 lock ($table)
 
 md5 ($str)
 
 query ($sql, $server=false)
 
 relationCount ($relationType=eZDBInterface::RELATION_TABLE)
 
 relationCounts ($relationMask)
 
 relationList ($relationType=eZDBInterface::RELATION_TABLE)
 
 relationMatchRegexp ($relationType)
 
 removeDatabase ($dbName)
 
 removeRelation ($relationName, $relationType)
 
 rollback ()
 
 rollbackQuery ()
 
 setError ()
 
 setErrorHandling ($errorHandling)
 Sets the eZDB error handling mode. More...
 
 setIsSQLOutputEnabled ($enabled)
 
 socketPath ()
 
 subString ($string, $from, $len=null)
 
 supportedRelationTypeMask ()
 
 supportedRelationTypes ()
 
 supportsDefaultValuesInsertion ()
 
 transactionCounter ()
 
 unlock ()
 
 usesBuiltinEncoding ()
 
 useShortNames ()
 
 version ()
 

Public Attributes

 $Charset
 The charset used for the current database. More...
 
 $ConnectRetries
 The number of times to retry a connection if it fails. More...
 
 $DB
 The current database name. More...
 
 $DBConnection
 The current connection, false if not connection has been made. More...
 
 $DBWriteConnection
 Contains the write database connection if used. More...
 
 $EndTime
 The end time of the timer. More...
 
 $ErrorMessage
 The database error message of the last executed function. More...
 
 $ErrorNumber = 0
 The database error message number of the last executed function. More...
 
 $InputTextCodec
 
 $IsConnected = false
 Contains true if we're connected to the database backend. More...
 
 $NumQueries = 0
 Contains number of queries sended to DB. More...
 
 $OutputSQL
 Setting if SQL queries should be sent to debug output. More...
 
 $OutputTextCodec
 Instance of a textcodec which handles text conversion, may not be set if no builtin encoding is used. More...
 
 $Password
 Stores the database connection password. More...
 
 $Port
 Contains the current port. More...
 
 $RecordError = true
 If true then ErrorMessage and ErrorNumber get filled. More...
 
 $Server
 Contains the current server. More...
 
 $SlaveDB
 The slave database name. More...
 
 $SlavePassword
 The slave database user password. More...
 
 $SlavePort
 The slave server port. More...
 
 $SlaveServer
 The slave server name. More...
 
 $SlaveUser
 The slave database user. More...
 
 $SocketPath
 The socket path, used by MySQL. More...
 
 $StartTime
 The start time of the timer. More...
 
 $TimeTaken
 The total number of milliseconds the timer took. More...
 
 $TransactionCounter
 The transaction counter, 0 means no transaction. More...
 
 $TransactionIsValid
 Flag which tells if a transaction is considered valid or not A transaction will be made invalid if SQL errors occur. More...
 
 $UseBuiltinEncoding
 True if a builtin encoder is to be used, this means that all input/output text is converted. More...
 
 $UsePersistentConnection = false
 If true then the database connection should be persistent. More...
 
 $User
 Stores the database connection user. More...
 
 $UseSlaveServer
 Contains true if slave servers are enabled. More...
 
const BINDING_NAME = 1
 
const BINDING_NO = 0
 
const BINDING_ORDERED = 2
 
const ERROR_MISSING_EXTENSION = 1
 
const RELATION_INDEX = 4
 
const RELATION_INDEX_BIT = 16
 
const RELATION_MASK = 31
 
const RELATION_NONE = 0
 
const RELATION_SEQUENCE = 1
 
const RELATION_SEQUENCE_BIT = 2
 
const RELATION_TABLE = 0
 
const RELATION_TABLE_BIT = 1
 
const RELATION_TRIGGER = 2
 
const RELATION_TRIGGER_BIT = 4
 
const RELATION_VIEW = 3
 
const RELATION_VIEW_BIT = 8
 
const SERVER_MASTER = 1
 
const SERVER_SLAVE = 2
 

Protected Member Functions

 isConnected ()
 
 relationName ($relationType)
 
 reportError ()
 

Protected Attributes

 $errorHandling = eZDB::ERROR_HANDLING_STANDARD
 

Private Member Functions

 endTime ()
 
 endTimer ()
 
 generateFailedTransactionStackEntry ($stack, $indentCount)
 
 generateTraceEntry ($entry)
 
 prepareSqlQuery (&$fd, &$buffer)
 
 reportQuery ($class, $sql, $numRows, $timeTaken, $asDebug=false)
 
 startTime ()
 
 startTimer ()
 
 timeTaken ()
 

Detailed Description

The eZDBInterface defines the interface for all database implementations.

See Also
eZDB

Member Function Documentation

eZDBInterface::arrayQuery (   $sql,
  $params = array(),
  $server = false 
)
pure virtual

Executes an SQL query and returns the result as an array of accociative arrays.

Parameters
$sqlSQL query to execute.
$paramsAssociative array containing extra parameters, can contain:
  • offset - The offset of the query.
  • limit - The limit of the query.
  • column - Limit returned row arrays to only contain this column.
$serverWhich server to execute the query on, either eZDBInterface::SERVER_MASTER or eZDBInterface::SERVER_SLAVE

An example would be:

$db->arrayQuery( 'SELECT * FROM eztable', array( 'limit' => 10, 'offset' => 5 ) );

Implemented in eZMySQLDB, eZMySQLiDB, eZPostgreSQLDB, and eZNullDB.

eZDBInterface::attribute (   $name)
Returns
the value of the attribute $name if it exists, otherwise null.
eZDBInterface::attributes ( )
Returns
the available attributes for this database handler.
eZDBInterface::availableDatabases ( )

Return alvailable databases in database.

Returns
array of available databases, null of none available false if listing databases not supported by database
eZDBInterface::begin ( )

Begin a new transaction. If we are already in transaction then we omit this new transaction and its matching commit or rollback.

Referenced by eZPostgreSQLDB\lock().

eZDBInterface::beginQuery ( )

The query to start a transaction. This function must be reimplemented in the subclasses.

Referenced by begin().

eZDBInterface::bindingType ( )
pure virtual

Returns type of binding used in database plugin.

Implemented in eZMySQLDB, eZMySQLiDB, and eZPostgreSQLDB.

eZDBInterface::bindVariable (   $value,
  $fieldDef = false 
)
pure virtual

Binds variable.

Implemented in eZMySQLDB, eZMySQLiDB, and eZPostgreSQLDB.

eZDBInterface::bitAnd (   $arg1,
  $arg2 
)
pure virtual
Returns
a sql-expression(string) to generate a bit and of the argument.

Implemented in eZMySQLDB, and eZMySQLiDB.

eZDBInterface::bitOr (   $arg1,
  $arg2 
)
pure virtual
Returns
a sql-expression(string) to generate a bit and of the argument.

Implemented in eZMySQLDB, and eZMySQLiDB.

eZDBInterface::charset ( )

Returns the charset which the database is encoded in.

See Also
usesBuiltinEncoding
eZDBInterface::checkCharset (   $charset,
$currentCharset 
)

Checks if the requested character set matches the one used in the database.

Returns
true if it matches or false if it differs.
Parameters
[out]$currentCharsetThe charset that the database uses, will only be set if the match fails. Note: This will be specific to the database.
Note
The default is to always return true, see the specific database handler for more information.
eZDBInterface::close ( )
pure virtual

Will close the database connection.

Implemented in eZMySQLDB, eZMySQLiDB, eZPostgreSQLDB, and eZNullDB.

eZDBInterface::commit ( )

Commits the current transaction. If this is not the outermost it will not commit to the database immediately but instead decrease the transaction counter.

If the current transaction had any errors in it the transaction will be rollbacked instead of commited. This ensures that the database is in a valid state. Also the PHP execution will be stopped.

Returns
true if the transaction was successful, false otherwise.

Referenced by eZPostgreSQLDB\unlock().

eZDBInterface::commitQuery ( )

The query to commit the transaction. This function must be reimplemented in the subclasses.

Referenced by commit().

eZDBInterface::concatString (   $strings = array())
pure virtual
Returns
a sql-expression(string) to concatenate strings.

Implemented in eZMySQLDB, eZMySQLiDB, and eZPostgreSQLDB.

eZDBInterface::connectRetryCount ( )
Returns
the number of times the db handler should try to reconnect if it fails.

Referenced by eZMySQLDB\connect(), eZMySQLiDB\connect(), and eZPostgreSQLDB\eZPostgreSQLDB().

eZDBInterface::connectRetryWaitTime ( )
Returns
the number of seconds the db handler should wait before rereconnecting.
Note
Currently returns 3 seconds.

Referenced by eZMySQLDB\connect(), eZMySQLiDB\connect(), and eZPostgreSQLDB\eZPostgreSQLDB().

eZDBInterface::createDatabase (   $dbName)
pure virtual

Create a new database

Implemented in eZMySQLDB, eZMySQLiDB, and eZPostgreSQLDB.

eZDBInterface::createTempTable (   $createTableQuery = '',
  $server = self::SERVER_SLAVE 
)

Create a new temporary table

eZDBInterface::databaseClientVersion ( )
pure virtual
Returns
the version of the database client or false if no version could be retrieved/

Implemented in eZMySQLDB, and eZMySQLiDB.

eZDBInterface::databaseName ( )
pure virtual

Returns the name of driver, this is used to determine the name of the database type. For instance multiple implementations of the MySQL database will all return 'mysql'.

Implemented in eZMySQLDB, eZMySQLiDB, eZPostgreSQLDB, and eZNullDB.

Referenced by hasRequiredServerVersion(), and insertFile().

eZDBInterface::databaseServerVersion ( )
Returns
the version of the database server or false if no version could be retrieved/

Referenced by hasRequiredServerVersion().

eZDBInterface::dropTempTable (   $dropTableQuery = '',
  $server = self::SERVER_SLAVE 
)

Drop temporary table

Referenced by dropTempTableList().

eZDBInterface::dropTempTableList (   $tableList,
  $server = self::SERVER_SLAVE 
)

Drop temporary table list

eZDBInterface::endTime ( )
private
Returns
the micro time when the timer was ended or false if no timer.
eZDBInterface::endTimer ( )
private

Stops the current timer and calculates the time taken.

See Also
startTimer, timeTaken

Referenced by eZPostgreSQLDB\query(), eZMySQLiDB\query(), and eZMySQLDB\query().

eZDBInterface::errorMessage ( )

Returns the error message

eZDBInterface::errorNumber ( )

Returns the error number

Referenced by eZMySQLiDB\availableDatabases(), eZMySQLDB\availableDatabases(), and insertFile().

eZDBInterface::escapeString (   $str)
pure virtual

Will escape a string so it's ready to be inserted in the database.

Implemented in eZMySQLDB, eZMySQLiDB, eZPostgreSQLDB, and eZNullDB.

eZDBInterface::eZDBInterface (   $parameters)

Create a new eZDBInterface object and connects to the database backend.

Referenced by eZMySQLDB\eZMySQLDB(), eZMySQLiDB\eZMySQLiDB(), eZNullDB\eZNullDB(), and eZPostgreSQLDB\eZPostgreSQLDB().

eZDBInterface::eZTableList (   $server = self::SERVER_MASTER)
pure virtual
Returns
existing ez publish tables in database

Implemented in eZMySQLDB, eZMySQLiDB, and eZPostgreSQLDB.

Referenced by generateUniqueTempTableName().

eZDBInterface::generateFailedTransactionStack ( )

Goes through the transaction stack tree $this->TransactionStackTree and generates the text output for it and returns it.

Returns
The generated string or false if it is disabled.
eZDBInterface::generateFailedTransactionStackEntry (   $stack,
  $indentCount 
)
private

Recursive helper function for generating stack tree output.

Returns
The generated string

Referenced by generateFailedTransactionStack().

eZDBInterface::generateSQLINStatement (   $elements,
  $columnName = '',
  $not = false,
  $unique = true,
  $type = false 
)

This function can be used to create a SQL IN statement to be used in a WHERE clause:

WHERE columnName IN ( element1, element2, ... ) By default, the elements that can be submitted as an anonymous array (or an integer value in case of a single element) will just be imploded. Drivers for databases with a limitation of the elements within an IN statement have to reimplement this function. It is also possible to negate the "IN" to a "NOT IN" by using the last parameter of this function.

Usage:

$db =& eZDb::instance(); $db->generateSQLINStatement( array( 2, 5, 43, ) );

Parameters
int | array$elementsElements that should (not) be matched by the IN statment as an integer or anonymous array
string$columnNameColumn name of the database table the IN statement should be created for
bool$notWill generate a "NOT IN" ( if set to true ) statement instead of an "IN" ( if set to false , default )
$uniqueWether or not to make the array unique. Not implemented in this class, but can be used by extending classes (oracle does use it)
$typeThe type to cast the array elements to
Returns
string A string with the correct IN statement like for example "columnName IN ( element1, element2 )"
eZDBInterface::generateTraceEntry (   $entry)
private

Helper function for generating output for one stack-trace entry.

Returns
The generated string

Referenced by generateFailedTransactionStackEntry().

eZDBInterface::generateUniqueTempTableName (   $pattern,
  $randomizeIndex = false,
  $server = self::SERVER_SLAVE 
)

Generate unique table name basing on the given pattern. If the pattern contains a (%) character then the character is replaced with a part providing uniqueness (e.g. random number).

eZDBInterface::hasAttribute (   $name)
Returns
true if the attribute $name exists for this database handler.
eZDBInterface::hasRequiredServerVersion (   $minVersion,
  $name = false 
)

Checks if the version number of the server is equal or larger than $minVersion. Will also check if the database type is correct if $name is set.

Parameters
$minVersionA string denoting the min. required version.
$nameThe name of the database type it requires or false if it does not matter.
Returns
true if the server fulfills the requirements.
eZDBInterface::implodeWithTypeCast (   $glue,
$pieces,
  $type 
)

Referenced by generateSQLINStatement().

eZDBInterface::insertFile (   $path,
  $sqlFile,
  $usePathType = true 
)

Inserts the SQL file $sqlFile found in the path $path into the currently connected database.

Returns
true if succesful.
eZDBInterface::invalidateTransaction ( )

Invalidates the current transaction, see commit() for more details on this.

Returns
true if it was invalidated or false if there is no transaction to invalidate.
See Also
isTransactionValid()

Referenced by reportError().

eZDBInterface::isCharsetSupported (   $charset)
Returns
true if the charset $charset is supported by the connected database.
eZDBInterface::isTransactionValid ( )
Returns
true if the current or last running transaction was valid, false otherwise.
See Also
invalidateTransaction()
eZDBInterface::lastSerialID (   $table = false,
  $column = false 
)
pure virtual

Returns the last serial ID generated with an auto increment field.

Implemented in eZMySQLDB, eZMySQLiDB, eZPostgreSQLDB, and eZNullDB.

eZDBInterface::lock (   $table)
pure virtual

Locks a table

Implemented in eZMySQLDB, eZMySQLiDB, eZPostgreSQLDB, and eZNullDB.

eZDBInterface::md5 (   $str)
pure virtual
Returns
a sql-expression(string) to generate a md5 sum of the string.

Implemented in eZMySQLDB, eZMySQLiDB, and eZPostgreSQLDB.

Referenced by reportError().

eZDBInterface::prepareSqlQuery ( $fd,
$buffer 
)
private

Prepare the sql file so we can create the database.

Parameters
$fdThe file descriptor
$bufferReference to string buffer for SQL queries.

Referenced by insertFile().

eZDBInterface::query (   $sql,
  $server = false 
)
pure virtual

Execute a query on the global MySQL database link. If it returns an error, the script is halted and the attempted SQL query and MySQL error message are printed.

Parameters
$sqlSQL query to execute.

Implemented in eZMySQLDB, eZMySQLiDB, eZPostgreSQLDB, and eZNullDB.

Referenced by createTempTable(), dropTempTable(), and insertFile().

eZDBInterface::relationCount (   $relationType = eZDBInterface::RELATION_TABLE)
pure virtual
Returns
the number of relation objects in the database for the relation type $relationType.

Implemented in eZMySQLDB, eZMySQLiDB, and eZPostgreSQLDB.

eZDBInterface::relationCounts (   $relationMask)
pure virtual
Returns
the relation count for all relation types in the mask $relationMask.

Implemented in eZMySQLDB, eZMySQLiDB, and eZPostgreSQLDB.

eZDBInterface::relationList (   $relationType = eZDBInterface::RELATION_TABLE)
pure virtual
Returns
the relation names in the database as an array for the relation type $relationType.

Implemented in eZMySQLDB, eZMySQLiDB, and eZPostgreSQLDB.

eZDBInterface::relationMatchRegexp (   $relationType)
pure virtual
Returns
A regexp (PCRE) that can be used to filter out certain relation elements. If no special regexp is provided it will return false.
Parameters
$relationTypeThe type which needs to be filtered, this allows one regexp per type.

An example, will only match tables that start with 'ez'.

return "#^ez#";
Note
This function is currently used by the eZDBTool class to remove relation elements of a specific kind (Most likely eZ Publish related elements).

Implemented in eZMySQLDB, eZMySQLiDB, and eZPostgreSQLDB.

eZDBInterface::relationName (   $relationType)
protected
Returns
the name of the relation type which is usable in SQL or false if unknown type.
Note
This function can be used by som database handlers which can operate on relation types using SQL.

Referenced by eZPostgreSQLDB\removeRelation().

eZDBInterface::removeDatabase (   $dbName)
pure virtual

Removes a database

Implemented in eZMySQLDB, eZMySQLiDB, and eZPostgreSQLDB.

eZDBInterface::removeRelation (   $relationName,
  $relationType 
)
pure virtual

Tries to remove the relation type $relationType named $relationName

Returns
true if successful

Implemented in eZMySQLDB, eZMySQLiDB, and eZPostgreSQLDB.

eZDBInterface::reportError ( )
protected

This is called whenever an error occurs in one of the database handlers. If a transaction is active it will be invalidated as well.

Referenced by eZPostgreSQLDB\query(), eZMySQLiDB\query(), and eZMySQLDB\query().

eZDBInterface::rollback ( )

Cancels the transaction.

eZDBInterface::rollbackQuery ( )

The query to cancel the transaction. This function must be reimplemented in the subclasses.

Referenced by commit(), reportError(), and rollback().

eZDBInterface::setErrorHandling (   $errorHandling)

Sets the eZDB error handling mode.

Parameters
int$errorHandlingPossible values are:pm
Since
4.5
eZDBInterface::setIsSQLOutputEnabled (   $enabled)

Enabled or disables sql output.

eZDBInterface::socketPath ( )
Returns
the socket path for the database or false if no socket path was defined.
eZDBInterface::startTime ( )
private
Returns
the micro time when the timer was start or false if no timer.
eZDBInterface::startTimer ( )
private

Records the current micro time. End the timer with endTimer() and fetch the result with timeTaken();

Referenced by eZPostgreSQLDB\query(), eZMySQLiDB\query(), and eZMySQLDB\query().

eZDBInterface::subString (   $string,
  $from,
  $len = null 
)
pure virtual
Returns
a sql-expression(string) to get substring.

Implemented in eZMySQLDB, eZMySQLiDB, and eZPostgreSQLDB.

eZDBInterface::supportedRelationTypeMask ( )
pure virtual
Returns
a mask of the relation type it supports.

Implemented in eZMySQLDB, eZMySQLiDB, and eZPostgreSQLDB.

eZDBInterface::supportedRelationTypes ( )
pure virtual
Returns
an array of the relation types.

Implemented in eZMySQLDB, eZMySQLiDB, and eZPostgreSQLDB.

eZDBInterface::supportsDefaultValuesInsertion ( )
eZDBInterface::timeTaken ( )
private
Returns
the number of milliseconds the last operation took or false if no value.

Referenced by eZPostgreSQLDB\query(), eZMySQLiDB\query(), and eZMySQLDB\query().

eZDBInterface::transactionCounter ( )
Returns
The current transaction counter.

0 means no transactions, 1 or higher means 1 or more transactions are running and a negative value means something is wrong.

eZDBInterface::unlock ( )
pure virtual

Releases table locks.

Implemented in eZMySQLDB, eZMySQLiDB, eZPostgreSQLDB, and eZNullDB.

eZDBInterface::usesBuiltinEncoding ( )

Returns true if the database handles encoding itself, if not all queries and returned data must be decoded yourselves.

Note
This functionality might be removed in the future
eZDBInterface::useShortNames ( )
pure virtual
Returns
if the short column names should be used insted of default ones
eZDBInterface::version ( )

Get database version number

Returns
version number false if not supported

Member Data Documentation

eZDBInterface::$Charset

The charset used for the current database.

Referenced by charset().

eZDBInterface::$ConnectRetries

The number of times to retry a connection if it fails.

Referenced by connectRetryCount().

eZDBInterface::$DB

The current database name.

Referenced by eZPostgreSQLDB\eZPostgreSQLDB(), eZMySQLiDB\eZTableList(), and eZMySQLDB\eZTableList().

eZDBInterface::$DBConnection

The current connection, false if not connection has been made.

Referenced by eZMySQLiDB\eZTableList(), eZMySQLDB\eZTableList(), eZMySQLiDB\setError(), and eZMySQLDB\setError().

eZDBInterface::$DBWriteConnection

Contains the write database connection if used.

Referenced by eZMySQLDB\eZMySQLDB(), eZMySQLiDB\eZMySQLiDB(), eZMySQLiDB\eZTableList(), and eZMySQLDB\eZTableList().

eZDBInterface::$EndTime

The end time of the timer.

Referenced by endTime().

eZDBInterface::$errorHandling = eZDB::ERROR_HANDLING_STANDARD
protected

Referenced by setErrorHandling().

eZDBInterface::$ErrorMessage

The database error message of the last executed function.

Referenced by errorMessage().

eZDBInterface::$ErrorNumber = 0

The database error message number of the last executed function.

Referenced by errorNumber().

eZDBInterface::$InputTextCodec
eZDBInterface::$IsConnected = false

Contains true if we're connected to the database backend.

Referenced by isConnected().

eZDBInterface::$NumQueries = 0

Contains number of queries sended to DB.

eZDBInterface::$OutputSQL

Setting if SQL queries should be sent to debug output.

Referenced by insertFile().

eZDBInterface::$OutputTextCodec

Instance of a textcodec which handles text conversion, may not be set if no builtin encoding is used.

eZDBInterface::$Password

Stores the database connection password.

Referenced by eZPostgreSQLDB\eZPostgreSQLDB().

eZDBInterface::$Port

Contains the current port.

Referenced by eZPostgreSQLDB\eZPostgreSQLDB().

eZDBInterface::$RecordError = true

If true then ErrorMessage and ErrorNumber get filled.

Referenced by begin(), commit(), eZMySQLiDB\query(), eZMySQLDB\query(), reportError(), and rollback().

eZDBInterface::$Server

Contains the current server.

Referenced by eZMySQLiDB\connect(), and eZPostgreSQLDB\eZPostgreSQLDB().

eZDBInterface::$SlaveDB

The slave database name.

Referenced by eZMySQLiDB\eZTableList(), and eZMySQLDB\eZTableList().

eZDBInterface::$SlavePassword

The slave database user password.

eZDBInterface::$SlavePort

The slave server port.

eZDBInterface::$SlaveServer

The slave server name.

eZDBInterface::$SlaveUser

The slave database user.

eZDBInterface::$SocketPath

The socket path, used by MySQL.

Referenced by socketPath().

eZDBInterface::$StartTime

The start time of the timer.

Referenced by endTimer(), and startTime().

eZDBInterface::$TimeTaken

The total number of milliseconds the timer took.

Referenced by timeTaken().

eZDBInterface::$TransactionCounter

The transaction counter, 0 means no transaction.

Referenced by begin(), commit(), and transactionCounter().

eZDBInterface::$TransactionIsValid

Flag which tells if a transaction is considered valid or not A transaction will be made invalid if SQL errors occur.

Referenced by isTransactionValid().

eZDBInterface::$UseBuiltinEncoding

True if a builtin encoder is to be used, this means that all input/output text is converted.

Referenced by usesBuiltinEncoding().

eZDBInterface::$UsePersistentConnection = false

If true then the database connection should be persistent.

eZDBInterface::$User

Stores the database connection user.

Referenced by eZPostgreSQLDB\eZPostgreSQLDB().

eZDBInterface::$UseSlaveServer

Contains true if slave servers are enabled.

const eZDBInterface::BINDING_NAME = 1
const eZDBInterface::BINDING_ORDERED = 2
const eZDBInterface::ERROR_MISSING_EXTENSION = 1
const eZDBInterface::RELATION_INDEX = 4
const eZDBInterface::RELATION_INDEX_BIT = 16
const eZDBInterface::RELATION_MASK = 31
const eZDBInterface::RELATION_NONE = 0
const eZDBInterface::RELATION_SEQUENCE_BIT = 2
const eZDBInterface::RELATION_TRIGGER = 2
const eZDBInterface::RELATION_TRIGGER_BIT = 4
const eZDBInterface::RELATION_VIEW = 3
const eZDBInterface::RELATION_VIEW_BIT = 8
const eZDBInterface::SERVER_MASTER = 1

The documentation for this class was generated from the following file: