eZPublishCommunityProject(LegacyStack)  2013.9
eZDBInterface Class Reference
+ Inheritance diagram for eZDBInterface:

Public Member Functions

 arrayQuery ($sql, $params=array(), $server=false)
 Executes an SQL query and returns the result as an array of accociative arrays. More...
 
 attribute ($name)
 Returns the value of the attribute $name if it exists, otherwise null. More...
 
 attributes ()
 Returns the available attributes for this database handler. More...
 
 availableDatabases ()
 Returns an array of available databases in the database, null of none available, false if listing databases not supported by database. More...
 
 begin ()
 Begin a new transaction. More...
 
 beginQuery ()
 The query to start a transaction. More...
 
 bindingType ()
 Returns type of binding used in database plugin. More...
 
 bindVariable ($value, $fieldDef=false)
 Binds variable. More...
 
 bitAnd ($arg1, $arg2)
 Returns a sql-expression(string) to generate a bit and of the argument. More...
 
 bitOr ($arg1, $arg2)
 Returns a sql-expression(string) to generate a bit and of the argument. More...
 
 charset ()
 Returns the charset which the database is encoded in. More...
 
 checkCharset ($charset, &$currentCharset)
 Checks if the requested character set matches the one used in the database. More...
 
 close ()
 Will close the database connection. More...
 
 commit ()
 Commits the current transaction. More...
 
 commitQuery ()
 The query to commit the transaction. More...
 
 concatString ($strings=array())
 Returns a sql-expression(string) to concatenate strings. More...
 
 connectRetryCount ()
 Returns the number of times the db handler should try to reconnect if it fails. More...
 
 connectRetryWaitTime ()
 Returns the number of seconds the db handler should wait before rereconnecting. More...
 
 createDatabase ($dbName)
 Create a new database. More...
 
 createTempTable ($createTableQuery= '', $server=self::SERVER_SLAVE)
 Create a new temporary table. More...
 
 databaseClientVersion ()
 Returns the version of the database client or false if no version could be retrieved/. More...
 
 databaseName ()
 Returns the name of driver, this is used to determine the name of the database type. More...
 
 databaseServerVersion ()
 Returns the version of the database server or false if no version could be retrieved/. More...
 
 dropTempTable ($dropTableQuery= '', $server=self::SERVER_SLAVE)
 Drop temporary table. More...
 
 dropTempTableList ($tableList, $server=self::SERVER_SLAVE)
 Drop temporary table list. More...
 
 endTime ()
 Returns the micro time when the timer was ended or false if no timer. More...
 
 endTimer ()
 Stops the current timer and calculates the time taken. More...
 
 errorMessage ()
 Returns the error message. More...
 
 errorNumber ()
 Returns the error number. More...
 
 escapeString ($str)
 Will escape a string so it's ready to be inserted in the database. More...
 
 eZDBInterface ($parameters)
 Creates a new eZDBInterface object and connects to the database backend. More...
 
 eZTableList ($server=self::SERVER_MASTER)
 Returns the existing ez publish tables in database. More...
 
 generateFailedTransactionStack ()
 Goes through the transaction stack tree {. More...
 
 generateFailedTransactionStackEntry ($stack, $indentCount)
 Recursive helper function for generating stack tree output. More...
 
 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...
 
 generateTraceEntry ($entry)
 Helper function for generating output for one stack-trace entry. More...
 
 generateUniqueTempTableName ($pattern, $randomizeIndex=false, $server=self::SERVER_SLAVE)
 Generate unique table name basing on the given pattern. More...
 
 hasAttribute ($name)
 Returns true if the attribute $name exists for this database handler. More...
 
 hasRequiredServerVersion ($minVersion, $name=false)
 Checks if the version number of the server is equal or larger than $minVersion. More...
 
 implodeWithTypeCast ($glue, &$pieces, $type)
 Casts elements of $pieces to type $type and returns them as string separated by $glue. More...
 
 insertFile ($path, $sqlFile, $usePathType=true)
 Inserts the SQL file $sqlFile found in the path $path into the currently connected database. More...
 
 invalidateTransaction ()
 Invalidates the current transaction, see {. More...
 
 isCharsetSupported ($charset)
 Returns true if the charset $charset is supported by the connected database. More...
 
 isConnected ()
 Returns true if we're connected to the database backend. More...
 
 isTransactionValid ()
 Returns if the current or last running transaction is valid. More...
 
 lastSerialID ($table=false, $column=false)
 Returns the last serial ID generated with an auto increment field. More...
 
 lock ($table)
 Locks one or several tables. More...
 
 md5 ($str)
 Returns a sql-expression(string) to generate a md5 sum of the string. More...
 
 prepareSqlQuery (&$fd, &$buffer)
 Prepare the sql file so we can create the database. More...
 
 query ($sql, $server=false)
 Execute a query on the global MySQL database link. More...
 
 relationCount ($relationType=eZDBInterface::RELATION_TABLE)
 Returns the number of relation objects in the database for the relation type $relationType. More...
 
 relationCounts ($relationMask)
 Returns the relation count for all relation types in the mask $relationMask. More...
 
 relationList ($relationType=eZDBInterface::RELATION_TABLE)
 Returns the relation names in the database as an array for the relation type $relationType. More...
 
 relationMatchRegexp ($relationType)
 Return A regexp (PCRE) that can be used to filter out certain relation elements. More...
 
 relationName ($relationType)
 Returns the name of the relation type which is usable in SQL or false if unknown type. More...
 
 removeDatabase ($dbName)
 Removes a database. More...
 
 removeRelation ($relationName, $relationType)
 Tries to remove the relation type $relationType named $relationName. More...
 
 reportError ()
 This is called whenever an error occurs in one of the database handlers. More...
 
 reportQuery ($class, $sql, $numRows, $timeTaken, $asDebug=false)
 Writes a debug notice with query information. More...
 
 rollback ()
 Cancels the transaction. More...
 
 rollbackQuery ()
 The query to cancel the transaction. More...
 
 setError ()
 Sets the error message and error message number. More...
 
 setErrorHandling ($errorHandling)
 Sets the eZDB error handling mode. More...
 
 setIsSQLOutputEnabled ($enabled)
 Enabled or disables sql output. More...
 
 socketPath ()
 Returns the socket path for the database or false if no socket path was defined. More...
 
 startTime ()
 Returns the micro time when the timer was start or false if no timer. More...
 
 startTimer ()
 Records the current micro time. More...
 
 subString ($string, $from, $len=null)
 Returns a sql-expression(string) to get substring. More...
 
 supportedRelationTypeMask ()
 Returns a mask of the relation type it supports. More...
 
 supportedRelationTypes ()
 Returns an array of the relation types. More...
 
 supportsDefaultValuesInsertion ()
 Returns true if the database handler support the insertion of default values, false if not. More...
 
 timeTaken ()
 Returns the number of milliseconds the last operation took or false if no value. More...
 
 transactionCounter ()
 Returns the current transaction counter. More...
 
 unlock ()
 Releases table locks. More...
 
 usesBuiltinEncoding ()
 Returns true if the database handles encoding itself. More...
 
 useShortNames ()
 Returns if the short column names should be used insted of default ones. More...
 
 version ()
 Get database version number. More...
 

Public Attributes

 $Charset
 
 $ConnectRetries
 
 $DB
 
 $DBConnection
 
 $DBWriteConnection
 
 $EndTime
 
 $ErrorMessage
 
 $ErrorNumber = 0
 
 $InputTextCodec
 
 $IsConnected = false
 
 $NumQueries = 0
 
 $OutputSQL
 
 $OutputTextCodec
 
 $Password
 
 $Port
 
 $RecordError = true
 
 $Server
 
 $SlaveDB
 
 $SlavePassword
 
 $SlavePort
 
 $SlaveServer
 
 $SlaveUser
 
 $SocketPath
 
 $StartTime
 
 $TimeTaken
 
 $TransactionCounter
 
 $TransactionIsValid
 
 $TransactionStackTree
 
 $UseBuiltinEncoding
 
 $UsePersistentConnection = false
 
 $User
 
 $UseSlaveServer
 
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 Attributes

 $errorHandling = eZDB::ERROR_HANDLING_STANDARD
 

Member Function Documentation

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

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

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

Parameters
string$sqlSQL query to execute.
array$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.
int | bool$serverWhich server to execute the query on, either eZDBInterface::SERVER_MASTER or eZDBInterface::SERVER_SLAVE
Returns
array
eZDBInterface::attribute (   $name)

Returns the value of the attribute $name if it exists, otherwise null.

Parameters
string$name
Returns
null
eZDBInterface::attributes ( )

Returns the available attributes for this database handler.

Returns
array
eZDBInterface::availableDatabases ( )

Returns an array of available databases in the database, null of none available, false if listing databases not supported by database.

Returns
array|null|bool
eZDBInterface::begin ( )

Begin a new transaction.

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

Returns
bool

Referenced by eZPostgreSQLDB\lock().

eZDBInterface::beginQuery ( )

The query to start a transaction.

This function must be reimplemented in the subclasses.

Returns
bool

Referenced by begin().

eZDBInterface::bindingType ( )

Returns type of binding used in database plugin.

Returns
int
eZDBInterface::bindVariable (   $value,
  $fieldDef = false 
)

Binds variable.

Parameters
mixed$value
mixed$fieldDef
Returns
mixed
eZDBInterface::bitAnd (   $arg1,
  $arg2 
)

Returns a sql-expression(string) to generate a bit and of the argument.

Parameters
string$arg1
string$arg2
Returns
string
eZDBInterface::bitOr (   $arg1,
  $arg2 
)

Returns a sql-expression(string) to generate a bit and of the argument.

Parameters
string$arg1
string$arg2
Returns
string
eZDBInterface::charset ( )

Returns the charset which the database is encoded in.

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

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

The default is to always return true, see the specific database handler for more information.

Parameters
string | array$charset
string$currentCharsetThe charset that the database uses, will only be set if the match fails.
Returns
bool true if it matches or false if it differs.
eZDBInterface::close ( )

Will close the database connection.

Returns
void
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
bool 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.

Returns
bool

Referenced by commit().

eZDBInterface::concatString (   $strings = array())

Returns a sql-expression(string) to concatenate strings.

Parameters
array$strings
Returns
string
eZDBInterface::connectRetryCount ( )

Returns the number of times the db handler should try to reconnect if it fails.

Returns
int

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

eZDBInterface::connectRetryWaitTime ( )

Returns the number of seconds the db handler should wait before rereconnecting.

Returns
int

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

eZDBInterface::createDatabase (   $dbName)

Create a new database.

Parameters
string$dbName
Returns
void
eZDBInterface::createTempTable (   $createTableQuery = '',
  $server = self::SERVER_SLAVE 
)

Create a new temporary table.

Parameters
string$createTableQuery
int$server
eZDBInterface::databaseClientVersion ( )

Returns the version of the database client or false if no version could be retrieved/.

Returns
string|bool
eZDBInterface::databaseName ( )

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'.

Returns
string

Referenced by hasRequiredServerVersion(), and insertFile().

eZDBInterface::databaseServerVersion ( )

Returns the version of the database server or false if no version could be retrieved/.

Returns
string|bool

Referenced by hasRequiredServerVersion().

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

Drop temporary table.

Parameters
string$dropTableQuery
int$server
Returns
void

Referenced by dropTempTableList().

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

Drop temporary table list.

Parameters
array$tableList
int$server
eZDBInterface::endTime ( )

Returns the micro time when the timer was ended or false if no timer.

private

Returns
bool|float
eZDBInterface::endTimer ( )

Stops the current timer and calculates the time taken.

private

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

eZDBInterface::errorMessage ( )

Returns the error message.

Returns
string
eZDBInterface::errorNumber ( )

Returns the error number.

Returns
int

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

eZDBInterface::escapeString (   $str)

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

Parameters
string$str
Returns
string mixed
eZDBInterface::eZDBInterface (   $parameters)

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

Parameters
array$parameters

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

eZDBInterface::eZTableList (   $server = self::SERVER_MASTER)

Returns the existing ez publish tables in database.

Parameters
int$server
Returns
array

Referenced by generateUniqueTempTableName().

eZDBInterface::generateFailedTransactionStack ( )

Goes through the transaction stack tree {.

See Also
eZDBInterface::$TransactionStackTree}, generates the text output for it and returns it.
Returns
bool|string The generated string or false if it is disabled.
eZDBInterface::generateFailedTransactionStackEntry (   $stack,
  $indentCount 
)

Recursive helper function for generating stack tree output.

private

Parameters
array$stack
int$indentCount
Returns
string 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)

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

private

Parameters
array$entry
Returns
string 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).

Parameters
string$pattern
bool$randomizeIndex
int$server
Returns
string
eZDBInterface::hasAttribute (   $name)

Returns true if the attribute $name exists for this database handler.

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

Casts elements of $pieces to type $type and returns them as string separated by $glue.

Use {

See Also
generateSQLINStatement()} if you intend to use this for IN statments! Example: $this->implodeWithTypeCast( ',', $myArray, 'int' );
Parameters
string$glueThe separator.
array$piecesThe array containing the elements.
string$typeThe type to cast to.
Returns
string

Referenced by generateSQLINStatement().

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

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

Parameters
string$path
string$sqlFile
bool$usePathType
Returns
bool true if succesful.
eZDBInterface::invalidateTransaction ( )

Invalidates the current transaction, see {.

See Also
commit()} for more details on this.
isTransactionValid()
Returns
bool true if it was invalidated or false if there is no transaction to invalidate.

Referenced by reportError().

eZDBInterface::isCharsetSupported (   $charset)

Returns true if the charset $charset is supported by the connected database.

Parameters
string$charset
Returns
bool
eZDBInterface::isTransactionValid ( )

Returns if the current or last running transaction is valid.

See Also
invalidateTransaction()
Returns
bool true if the current or last running transaction was valid, false otherwise
eZDBInterface::lastSerialID (   $table = false,
  $column = false 
)

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

Parameters
string | bool$table
string | bool$column
Returns
int|bool The most recent value for the sequence
eZDBInterface::lock (   $table)

Locks one or several tables.

Parameters
string | array$table
eZDBInterface::md5 (   $str)

Returns a sql-expression(string) to generate a md5 sum of the string.

Parameters
string$str
Returns
string

Referenced by reportError().

eZDBInterface::prepareSqlQuery ( $fd,
$buffer 
)

Prepare the sql file so we can create the database.

private

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

Referenced by insertFile().

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

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
string$sqlSQL query to execute.
int | bool$server
Returns
mixed

Referenced by createTempTable(), dropTempTable(), insertFile(), and ezpKernelWeb\requestInit().

eZDBInterface::relationCount (   $relationType = eZDBInterface::RELATION_TABLE)

Returns the number of relation objects in the database for the relation type $relationType.

Parameters
int$relationType
Returns
int
eZDBInterface::relationCounts (   $relationMask)

Returns the relation count for all relation types in the mask $relationMask.

Parameters
int$relationMask
Returns
int
eZDBInterface::relationList (   $relationType = eZDBInterface::RELATION_TABLE)

Returns the relation names in the database as an array for the relation type $relationType.

Parameters
int$relationType
Returns
array
eZDBInterface::relationMatchRegexp (   $relationType)

Return A regexp (PCRE) that can be used to filter out certain relation elements.

If no special regexp is provided it will return false.

An example, will only match tables that start with 'ez'. return "#^ez#";

This function is currently used by the eZDBTool class to remove relation elements of a specific kind (Most likely eZ Publish related elements).

Parameters
int$relationTypeThe type which needs to be filtered, this allows one regexp per type.
Returns
bool
eZDBInterface::relationName (   $relationType)

Returns the name of the relation type which is usable in SQL or false if unknown type.

This function can be used by some database handlers which can operate on relation types using SQL.

protected

Parameters
int$relationType
Returns
bool

Referenced by eZPostgreSQLDB\removeRelation().

eZDBInterface::removeDatabase (   $dbName)

Removes a database.

Parameters
string$dbName
Returns
void
eZDBInterface::removeRelation (   $relationName,
  $relationType 
)

Tries to remove the relation type $relationType named $relationName.

Parameters
string$relationName
int$relationType
Returns
bool true if successful
eZDBInterface::reportError ( )

This is called whenever an error occurs in one of the database handlers.

If a transaction is active it will be invalidated as well.

protected

Exceptions
eZDBException

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

eZDBInterface::reportQuery (   $class,
  $sql,
  $numRows,
  $timeTaken,
  $asDebug = false 
)

Writes a debug notice with query information.

private

Parameters
string$class
string$sql
int | string$numRows
int | string$timeTaken
bool$asDebug

Referenced by eZMySQLiDB\arrayQuery(), eZMySQLiDB\checkCharsetPriv(), eZMySQLiDB\eZTableList(), eZPostgreSQLDB\query(), eZMySQLiDB\query(), eZMySQLiDB\relationCount(), and eZMySQLiDB\relationList().

eZDBInterface::rollback ( )

Cancels the transaction.

Returns
bool

Referenced by reportError().

eZDBInterface::rollbackQuery ( )

The query to cancel the transaction.

This function must be reimplemented in the subclasses.

Returns
bool

Referenced by commit(), and rollback().

eZDBInterface::setError ( )

Sets the error message and error message number.

Returns
void

Referenced by eZMySQLiDB\checkCharsetPriv(), eZMySQLiDB\connect(), eZMySQLiDB\createDatabase(), eZMySQLiDB\query(), and eZMySQLiDB\removeDatabase().

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.

Parameters
bool$enabled
eZDBInterface::socketPath ( )

Returns the socket path for the database or false if no socket path was defined.

Returns
string|bool
eZDBInterface::startTime ( )

Returns the micro time when the timer was start or false if no timer.

private

Returns
bool|float
eZDBInterface::startTimer ( )

Records the current micro time.

End the timer with endTimer() and fetch the result with timeTaken();

private

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

eZDBInterface::subString (   $string,
  $from,
  $len = null 
)

Returns a sql-expression(string) to get substring.

Parameters
string$string
int$from
int$len
Returns
string
eZDBInterface::supportedRelationTypeMask ( )

Returns a mask of the relation type it supports.

Returns
int
eZDBInterface::supportedRelationTypes ( )

Returns an array of the relation types.

Returns
array
eZDBInterface::supportsDefaultValuesInsertion ( )

Returns true if the database handler support the insertion of default values, false if not.

Returns
bool
eZDBInterface::timeTaken ( )

Returns the number of milliseconds the last operation took or false if no value.

private

Returns
bool|float

Referenced by eZPostgreSQLDB\query(), and eZMySQLiDB\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.

Returns
int
eZDBInterface::unlock ( )

Releases table locks.

Returns
void
eZDBInterface::usesBuiltinEncoding ( )

Returns true if the database handles encoding itself.

If not, all queries and returned data must be decoded yourselves.

This functionality might be removed in the future

Returns
bool
eZDBInterface::useShortNames ( )

Returns if the short column names should be used insted of default ones.

Returns
bool
eZDBInterface::version ( )

Get database version number.

Returns
string|bool Version number, false if not supported

Member Data Documentation

eZDBInterface::$Charset

Referenced by charset().

eZDBInterface::$ConnectRetries

Referenced by connectRetryCount().

eZDBInterface::$DB
eZDBInterface::$DBConnection
eZDBInterface::$DBWriteConnection
eZDBInterface::$EndTime

Referenced by endTime().

eZDBInterface::$errorHandling = eZDB::ERROR_HANDLING_STANDARD
protected

Referenced by setErrorHandling().

eZDBInterface::$ErrorMessage

Referenced by errorMessage().

eZDBInterface::$ErrorNumber = 0

Referenced by errorNumber().

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

Referenced by isConnected().

eZDBInterface::$NumQueries = 0
eZDBInterface::$OutputSQL

Referenced by insertFile().

eZDBInterface::$OutputTextCodec
eZDBInterface::$Password
eZDBInterface::$Port
eZDBInterface::$RecordError = true
eZDBInterface::$Server
eZDBInterface::$SlaveDB

Referenced by eZMySQLiDB\eZTableList().

eZDBInterface::$SlavePassword
eZDBInterface::$SlavePort
eZDBInterface::$SlaveServer
eZDBInterface::$SlaveUser
eZDBInterface::$SocketPath

Referenced by socketPath().

eZDBInterface::$StartTime

Referenced by endTimer(), and startTime().

eZDBInterface::$TimeTaken

Referenced by timeTaken().

eZDBInterface::$TransactionCounter

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

eZDBInterface::$TransactionIsValid

Referenced by isTransactionValid().

eZDBInterface::$TransactionStackTree
eZDBInterface::$UseBuiltinEncoding

Referenced by usesBuiltinEncoding().

eZDBInterface::$UsePersistentConnection = false
eZDBInterface::$User
eZDBInterface::$UseSlaveServer
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

Referenced by eZMySQLiDB\query().


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