DatabaseAwareTrait

Database aware trait.

since

4.0.0

Methods

getDbo

Get the database driver.

getDbo() : \Joomla\Database\DatabaseInterface
since

4.0.0

throws

\UnexpectedValueException

Response

\Joomla\Database\DatabaseInterfaceThe database driver.

setDbo

Set the database driver.

setDbo(\Joomla\Database\DatabaseInterface $db = null) : void
since

4.0.0

Arguments

$db

\Joomla\Database\DatabaseInterfaceThe database driver.

Properties

_db

The database driver.

since

4.0.0

Type(s)

\Joomla\Database\DatabaseInterface