Joomla Framework Database Factory class
- Depuis
- 1.0
◆ getDriver()
getDriver |
( |
string |
$name = 'mysqli' , |
|
|
array |
$options = [] |
|
) |
| |
Method to return a database driver 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.
- Paramètres
-
string | $name | Name of the database driver you'd like to instantiate |
array | $options | Parameters to be passed to the database driver. |
- Renvoie
- DatabaseInterface
- Depuis
- 1.0
- Exceptions
-
Références $class, $name, $options, $this, et null.
◆ getIterator()
Get a new iterator on the current query.
- Paramètres
-
string | $name | Name of the driver you want an iterator for. |
StatementInterface | $statement | Statement holding the result set to be iterated. |
string | null | $column | An optional column to use as the iterator key. |
string | $class | The class of object that is returned. |
- Renvoie
- DatabaseIterator
- Depuis
- 2.0.0
Références $class, $name, et class.
◆ getQuery()
Get the current query object or a new Query object.
- Paramètres
-
string | $name | Name of the driver you want an query object for. |
DatabaseInterface | null | $db | Optional database driver to inject into the query object. |
- Renvoie
- QueryInterface
- Depuis
- 1.0
- Exceptions
-
Références $class, $db, et $name.
La documentation de cette classe a été générée à partir du fichier suivant :