DatabaseAwareTrait

Database aware trait.

deprecated
since

4.0.0

deprecated

5.0 Use the trait from the database package

package

Joomla CMS

Methods

getDbo

Get the database driver.

getDbo() : \Joomla\Database\DatabaseInterface
deprecated
since

4.0.0

throws

\UnexpectedValueException

deprecated

5.0 Use the trait from the database package

Response

\Joomla\Database\DatabaseInterfaceThe database driver.

setDbo

Set the database driver.

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

4.0.0

deprecated

5.0 Use the trait from the database package

Arguments

db

\Joomla\Database\DatabaseInterfaceThe database driver.

Properties

_db

The database driver.

deprecated
since

4.0.0

deprecated

5.0 Use the trait from the database package

Type(s)

\Joomla\Database\DatabaseInterface