Joomla CMS  4.2.2
Documentation des API du CMS Joomla en version 4.2.2
Référence de la classe DatabaseFactory

Fonctions membres publiques

 getDriver (string $name='mysqli', array $options=[])
 
 getIterator (string $name, StatementInterface $statement, ?string $column=null, string $class=\stdClass::class)
 
 getQuery (string $name, ?DatabaseInterface $db=null)
 

Description détaillée

Joomla Framework Database Factory class

Depuis
1.0

Documentation des fonctions membres

◆ 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$nameName of the database driver you'd like to instantiate
array$optionsParameters to be passed to the database driver.
Renvoie
DatabaseInterface
Depuis
1.0
Exceptions
Exception

Références $class, $name, $options, $this, et null.

◆ getIterator()

getIterator ( string  $name,
StatementInterface  $statement,
?string  $column = null,
string  $class = \stdClass::class 
)

Get a new iterator on the current query.

Paramètres
string$nameName of the driver you want an iterator for.
StatementInterface$statementStatement holding the result set to be iterated.
string | null$columnAn optional column to use as the iterator key.
string$classThe class of object that is returned.
Renvoie
DatabaseIterator
Depuis
2.0.0

Références $class, $name, et class.

◆ getQuery()

getQuery ( string  $name,
?DatabaseInterface  $db = null 
)

Get the current query object or a new Query object.

Paramètres
string$nameName of the driver you want an query object for.
DatabaseInterface | null$dbOptional database driver to inject into the query object.
Renvoie
QueryInterface
Depuis
1.0
Exceptions
Exception

Références $class, $db, et $name.


La documentation de cette classe a été générée à partir du fichier suivant :