📚 Looking for current Exponential documentation? This site contains legacy SDK & API reference docs (eZ Publish era). For up-to-date 2026 product documentation, visit doc.exponential.earth.

  class / eZMySQLDB  

eZMySQLDB Class Reference
[Database abstraction layer]

The eZMySQLDB class provides MySQL implementation of the database interface. More...

Inheritance diagram for eZMySQLDB:

TODO — Image not available in archive

Title:   eZMySQLDB Class Inheritance Diagram (Doxygen)
File:    /doc/generated/html/classeZMySQLDB.png

What this image shows:
Doxygen-generated class inheritance diagram for the eZMySQLDB PHP class. Shows the inheritance hierarchy: which classes eZMySQLDB extends and which classes inherit from it, with links to parent and child class documentation. This diagram was auto-generated from the Exponential 3.1 PHP source code using Doxygen circa 2003.

Replacement instructions:
Run Doxygen on the Exponential 3.1 PHP source and locate the generated classeZMySQLDB.png in the output. Or draw the inheritance tree manually from the API reference. Save as /doc/generated/html/classeZMySQLDB.png

See /sdk/missing.html for the full list of missing images.
eZDBInterface List of all members.

Public Methods

 eZMySQLDB ($parameters)
 databaseName ()
& query ($sql)
& arrayQuery ($sql,$params=array())
 supportedRelationTypeMask ()
 supportedRelationTypes ()
 relationCounts ($relationMask)
 relationCount ($relationType=EZ_DB_RELATION_TABLE)
 relationList ($relationType=EZ_DB_RELATION_TABLE)
 removeRelation ($relationName,$relationType)
 lock ($table)
 unlock ()
 begin ()
 commit ()
 rollback ()
 lastSerialID ($table,$column)
& escapeString ($str)
 close ()
 createDatabase ($dbName)
 setError ()

Private Methods

& connect ($server,$db,$user,$password,$socketPath)

Detailed Description

The eZMySQLDB class provides MySQL implementation of the database interface.

eZMySQLDB is the MySQL implementation of eZDB.

See also:
eZDB

Definition at line 41 of file ezmysqldb.php.


Constructor & Destructor Documentation

eZMySQLDB::eZMySQLDB (  $    parameters ) 
 

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

Definition at line 46 of file ezmysqldb.php.

References connect(), eZDebug::createAccumulatorGroup(), eZDBInterface::DB, eZDBInterface::DBConnection, eZDBInterface::DBWriteConnection, eZDBInterface::eZDBInterface(), eZDBInterface::IsConnected, and eZDBInterface::socketPath().


Member Function Documentation

& eZMySQLDB::arrayQuery (  $    sql,
$    params = array()
)  [virtual]
 

Reimplemented for internal reasons; the API is not affected.

Implements eZDBInterface.

Definition at line 250 of file ezmysqldb.php.

References eZDebug::accumulatorStart(), eZDebug::accumulatorStop(), eZDBInterface::isConnected(), eZDBInterface::OutputTextCodec, query(), eZDBInterface::reportQuery(), and eZDBInterface::UseBuiltinEncoding.

eZMySQLDB::begin (    )  [virtual]
 

Reimplemented for internal reasons; the API is not affected.

Implements eZDBInterface.

Definition at line 476 of file ezmysqldb.php.

References eZDBInterface::isConnected(), and query().

eZMySQLDB::close (    )  [virtual]
 

Reimplemented for internal reasons; the API is not affected.

Implements eZDBInterface.

Definition at line 531 of file ezmysqldb.php.

References eZDBInterface::isConnected().

eZMySQLDB::commit (    )  [virtual]
 

Reimplemented for internal reasons; the API is not affected.

Implements eZDBInterface.

Definition at line 487 of file ezmysqldb.php.

References eZDBInterface::isConnected(), and query().

& eZMySQLDB::connect (  $    server,
$    db,
$    user,
$    password,
$    socketPath
)  [private]
 

Opens a new connection to a MySQL database and returns the connection

Definition at line 100 of file ezmysqldb.php.

References eZDBInterface::connectRetryCount(), eZDBInterface::connectRetryWaitTime(), eZDBInterface::isConnected(), setError(), eZDBInterface::socketPath(), eZDBInterface::UsePersistentConnection, and eZDebug::writeError().

Referenced by eZMySQLDB().

eZMySQLDB::createDatabase (  $    dbName ) 
 

Reimplemented for internal reasons; the API is not affected.

Definition at line 543 of file ezmysqldb.php.

References eZDBInterface::DBConnection, and setError().

eZMySQLDB::databaseName (    )  [virtual]
 

Reimplemented for internal reasons; the API is not affected.

Implements eZDBInterface.

Definition at line 161 of file ezmysqldb.php.

& eZMySQLDB::escapeString (  $    str )  [virtual]
 

Reimplemented for internal reasons; the API is not affected.

Implements eZDBInterface.

Definition at line 523 of file ezmysqldb.php.

eZMySQLDB::lastSerialID (  $    table,
$    column
)  [virtual]
 

Reimplemented for internal reasons; the API is not affected.

Implements eZDBInterface.

Definition at line 509 of file ezmysqldb.php.

References eZDBInterface::isConnected().

eZMySQLDB::lock (  $    table )  [virtual]
 

Reimplemented for internal reasons; the API is not affected.

Implements eZDBInterface.

Definition at line 454 of file ezmysqldb.php.

References eZDBInterface::isConnected(), and query().

& eZMySQLDB::query (  $    sql )  [virtual]
 

Reimplemented for internal reasons; the API is not affected.

Implements eZDBInterface.

Definition at line 169 of file ezmysqldb.php.

References eZDebug::accumulatorStart(), eZDebug::accumulatorStop(), eZDBInterface::DBConnection, eZDBInterface::DBWriteConnection, eZDBInterface::endTimer(), eZDBInterface::isConnected(), eZDBInterface::OutputSQL, eZDBInterface::RecordError, eZDBInterface::reportQuery(), setError(), eZDBInterface::startTimer(), unlock(), eZDBInterface::UseBuiltinEncoding, and eZDebug::writeError().

Referenced by arrayQuery(), begin(), commit(), lock(), removeRelation(), rollback(), and unlock().

eZMySQLDB::relationCount (  $    relationType = EZ_DB_RELATION_TABLE )  [virtual]
 

Reimplemented for internal reasons; the API is not affected.

Implements eZDBInterface.

Definition at line 390 of file ezmysqldb.php.

References eZDBInterface::isConnected(), relationCount(), and eZDebug::writeError().

Referenced by relationCount(), and relationCounts().

eZMySQLDB::relationCounts (  $    relationMask )  [virtual]
 

Reimplemented for internal reasons; the API is not affected.

Implements eZDBInterface.

Definition at line 379 of file ezmysqldb.php.

References relationCount().

eZMySQLDB::relationList (  $    relationType = EZ_DB_RELATION_TABLE )  [virtual]
 

Reimplemented for internal reasons; the API is not affected.

Implements eZDBInterface.

Definition at line 410 of file ezmysqldb.php.

References eZDBInterface::isConnected(), relationList(), and eZDebug::writeError().

Referenced by relationList().

eZMySQLDB::removeRelation (  $    relationName,
$    relationType
)  [virtual]
 

Reimplemented for internal reasons; the API is not affected.

Implements eZDBInterface.

Definition at line 434 of file ezmysqldb.php.

References eZDBInterface::isConnected(), query(), eZDBInterface::relationName(), removeRelation(), and eZDebug::writeError().

Referenced by removeRelation().

eZMySQLDB::rollback (    )  [virtual]
 

Reimplemented for internal reasons; the API is not affected.

Implements eZDBInterface.

Definition at line 498 of file ezmysqldb.php.

References eZDBInterface::isConnected(), and query().

eZMySQLDB::setError (    )  [virtual]
 

Reimplemented for internal reasons; the API is not affected.

Implements eZDBInterface.

Definition at line 555 of file ezmysqldb.php.

References eZDBInterface::DBConnection, eZDBInterface::ErrorMessage, and eZDBInterface::ErrorNumber.

Referenced by connect(), createDatabase(), and query().

eZMySQLDB::supportedRelationTypeMask (    )  [virtual]
 

Reimplemented for internal reasons; the API is not affected.

Implements eZDBInterface.

Definition at line 363 of file ezmysqldb.php.

eZMySQLDB::supportedRelationTypes (    )  [virtual]
 

Reimplemented for internal reasons; the API is not affected.

Implements eZDBInterface.

Definition at line 371 of file ezmysqldb.php.

eZMySQLDB::unlock (    )  [virtual]
 

Reimplemented for internal reasons; the API is not affected.

Implements eZDBInterface.

Definition at line 465 of file ezmysqldb.php.

References eZDBInterface::isConnected(), and query().

Referenced by query().


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

Exponential Copyright © 1998 - 2026 7x