eZPublish  3.8
eZPostgreSQLDB Class Reference

The eZPostgreSQLDB class provides PostgreSQL database functions. More...

+ Inheritance diagram for eZPostgreSQLDB:
+ Collaboration diagram for eZPostgreSQLDB:

Public Member Functions

 arrayQuery ($sql, $params=array())
 beginQuery ()
 bindingType ()
 bindVariable (&$value, $fieldDef=false)
 close ()
 commitQuery ()
 concatString ($strings=array())
 correctSequenceValues ()
 databaseName ()
 databaseServerVersion ()
 escapeString ($str)
 eZPostgreSQLDB ($parameters)
 eZTableList ()
 isCharsetSupported ($charset)
 lastSerialID ($table, $column= 'id')
 lock ($table)
 md5 ($str)
 query ($sql)
 relationCount ($relationType=EZ_DB_RELATION_TABLE)
 relationCounts ($relationMask)
 relationList ($relationType=EZ_DB_RELATION_TABLE)
 relationMatchRegexp ($relationType)
 removeRelation ($relationName, $relationType)
 rollbackQuery ()
 setError ()
 supportedRelationTypeMask ()
 supportedRelationTypes ()
 unlock ()
- Public Member Functions inherited from eZDBInterface
attribute ($name)
 attributes ()
 availableDatabases ()
 begin ()
 beginQuery ()
 bindVariable ($value, $fieldDef=false)
 charset ()
 checkCharset ($charset, &$currentCharset)
 commit ()
 commitQuery ()
 connectRetryCount ()
 connectRetryWaitTime ()
 createDatabase ()
 createTempTable ($createTableQuery= '')
 databaseClientVersion ()
 databaseServerVersion ()
 dropTempTable ($dropTableQuery= '')
 errorMessage ()
 errorNumber ()
 eZDBInterface ($parameters)
 generateFailedTransactionStack ()
 generateUniqueTempTableName ($pattern, $randomizeIndex=false)
 hasAttribute ($name)
 hasRequiredServerVersion ($minVersion, $name=false)
 implodeWithTypeCast ($glue, &$pieces, $type)
 insertFile ($path, $sqlFile, $usePathType=true)
 invalidateTransaction ()
 isCharsetSupported ($charset)
 isTransactionValid ()
 rollback ()
 rollbackQuery ()
 setIsSQLOutputEnabled ($enabled)
 socketPath ()
 transactionCounter ()
 usesBuiltinEncoding ()
 useShortNames ()
 version ()

Private Member Functions

 relationKind ($relationType)
 subString ($string, $from, $len=null)

Additional Inherited Members

- Protected Member Functions inherited from eZDBInterface
 isConnected ()
 relationName ($relationType)
 reportError ()
- Protected Attributes inherited from eZDBInterface
 The charset used for the current database. More...
 The number of times to retry a connection if it fails. More...
 The current database name. More...
 The current connection, false if not connection has been made. More...
 Contains the write database connection if used. More...
 The end time of the tiemr. More...
 The database error message of the last executed function. More...
 $ErrorNumber = 0
 The database error message number of the last executed function. More...
 $IsConnected = false
 Contains true if we're connected to the database backend. More...
 $NumQueries = 0
 Contains number of queries sended to DB. More...
 Setting if SQL queries should be sent to debug output. More...
 Instance of a textcodec which handles text conversion, may not be set if no builtin encoding is used. More...
 Stores the database connection password. More...
 $RecordError = true
 If true then ErrorMessage and ErrorNumber get filled. More...
 Contains the current server. More...
 The slave database name. More...
 The slave database user password. More...
 The slave server name. More...
 The slave database user. More...
 The socket path, used by MySQL. More...
 The start time of the timer. More...
 The total number of milliseconds the timer took. More...
 The transaction counter, 0 means no transaction. More...
 Flag which tells if a transaction is considered valid or not A transaction will be made invalid if SQL errors occur. More...
 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...
 Stores the database connection user. More...
 Contains true if slave servers are enabled. More...

Detailed Description

The eZPostgreSQLDB class provides PostgreSQL database functions.

eZPostgreSQLDB implementes PostgreSQLDB specific database code.

See Also

Member Function Documentation

eZPostgreSQLDB::arrayQuery (   $sql,
  $params = array() 
eZPostgreSQLDB::beginQuery ( )

The query to start the transaction.

eZPostgreSQLDB::bindingType ( )

Implements eZDBInterface.

eZPostgreSQLDB::bindVariable ( $value,
  $fieldDef = false 
eZPostgreSQLDB::close ( )

Implements eZDBInterface.

eZPostgreSQLDB::commitQuery ( )

The query to commit the transaction.

eZPostgreSQLDB::concatString (   $strings = array())
eZPostgreSQLDB::correctSequenceValues ( )

Sets PostgreSQL sequence values to the maximum values used in the corresponding columns.

eZPostgreSQLDB::databaseName ( )

Implements eZDBInterface.

eZPostgreSQLDB::databaseServerVersion ( )
eZPostgreSQLDB::escapeString (   $str)

Implements eZDBInterface.

eZPostgreSQLDB::eZPostgreSQLDB (   $parameters)

Creates a new eZPostgreSQLDB object and connects to the database.

eZPostgreSQLDB::eZTableList ( )

Implements eZDBInterface.

eZPostgreSQLDB::isCharsetSupported (   $charset)
eZPostgreSQLDB::lastSerialID (   $table,
  $column = 'id' 

Implements eZDBInterface.

eZPostgreSQLDB::lock (   $table)

Implements eZDBInterface.

eZPostgreSQLDB::md5 (   $str)
eZPostgreSQLDB::query (   $sql)
eZPostgreSQLDB::relationCount (   $relationType = EZ_DB_RELATION_TABLE)

Implements eZDBInterface.

eZPostgreSQLDB::relationCounts (   $relationMask)

Implements eZDBInterface.

eZPostgreSQLDB::relationKind (   $relationType)
eZPostgreSQLDB::relationList (   $relationType = EZ_DB_RELATION_TABLE)

Implements eZDBInterface.

eZPostgreSQLDB::relationMatchRegexp (   $relationType)

Implements eZDBInterface.

eZPostgreSQLDB::removeRelation (   $relationName,

Implements eZDBInterface.

eZPostgreSQLDB::rollbackQuery ( )

The query to cancel the transaction.

eZPostgreSQLDB::setError ( )

Implements eZDBInterface.

Referenced by query().

eZPostgreSQLDB::subString (   $string,
  $len = null 
eZPostgreSQLDB::supportedRelationTypeMask ( )

Implements eZDBInterface.

eZPostgreSQLDB::supportedRelationTypes ( )

Implements eZDBInterface.

Referenced by relationCounts().

eZPostgreSQLDB::unlock ( )

Implements eZDBInterface.

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