\JDatabaseFactory
Joomla Platform Database Factory class
Synopsis
class JDatabaseFactory
{
- // members
- private JDatabaseFactory $_instance;
- // methods
- public JDatabaseDriver getDriver()
- public JDatabaseExporter getExporter()
- public JDatabaseImporter getImporter()
- public static JDatabaseFactory getInstance()
- public JDatabaseQuery getQuery()
- public static void setInstance()
Members
private
- $_instance
—
JDatabaseFactory
Contains the current JDatabaseFactory instance
Methods
public
- getDriver() — Method to return a JDatabaseDriver instance based on the given options. There are three global options and then the rest are specific to the database driver. The 'database' option determines which database is to be used for the connection. The 'select' option determines whether the connector should automatically select the chosen database.
- getExporter() — Gets an exporter class object.
- getImporter() — Gets an importer class object.
- getInstance() — Gets an instance of the factory object.
- getQuery() — Get the current query object or a new JDatabaseQuery object.
- setInstance() — Gets an instance of a factory object to return on subsequent calls of getInstance.