JModelDatabase

Extends \JModelBase

Joomla Platform Database Model Class

abstract deprecated
since

3.0.0

deprecated

5.0 Use the default MVC library

package

Joomla.Platform

Methods

__construct

Instantiate the model.

__construct(\Joomla\Registry\Registry $state = null) 
inherited
since

3.0.0

Arguments

$state

\Joomla\Registry\RegistryThe model state.

getDb

Get the database driver.

getDb() : \JDatabaseDriver
since

3.0.0

Response

\JDatabaseDriverThe database driver.

getState

Get the model state.

getState() : \Joomla\Registry\Registry
inherited
since

3.0.0

Response

\Joomla\Registry\RegistryThe state object.

loadDb

Load the database driver.

loadDb() : \JDatabaseDriver
since

3.0.0

Response

\JDatabaseDriverThe database driver.

loadState

Load the model state.

loadState() : \Joomla\Registry\Registry
inherited
since

3.0.0

Response

\Joomla\Registry\RegistryThe state object.

setDb

Set the database driver.

setDb(\JDatabaseDriver $db) : void
since

3.0.0

Arguments

$db

\JDatabaseDriverThe database driver.

setState

Set the model state.

setState(\Joomla\Registry\Registry $state) : void
inherited
since

3.0.0

Arguments

$state

\Joomla\Registry\RegistryThe state object.

Properties

db

The database driver.

since

3.0.0

Type(s)

\JDatabaseDriver

state

The model state.

inherited
since

3.0.0

Type(s)

\Joomla\Registry\Registry