AbstractDatabaseModel

Extends \Joomla\Model\AbstractModel Implements \Joomla\Model\DatabaseModelInterface

Joomla Framework Database Model Class

abstract deprecated
since

1.0

deprecated

2.0 Implement the model interfaces directly; the concrete implementations are provided as traits

Methods

__construct

Instantiate the model.

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

1.0

Arguments

$state

\Joomla\Registry\RegistryThe model state.

getDb

Get the database driver.

getDb() : \Joomla\Database\DatabaseDriver
since

1.0

Response

\Joomla\Database\DatabaseDriverThe database driver.

getState

Get the model state.

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

1.0

Response

\Joomla\Registry\RegistryThe state object.

setDb

Set the database driver.

setDb(\Joomla\Database\DatabaseDriver $db) : void
since

1.0

Arguments

$db

\Joomla\Database\DatabaseDriverThe database driver.

setState

Set the model state.

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

1.0

Arguments

$state

\Joomla\Registry\RegistryThe state object.

Properties

db

The database driver.

state

The model state.

inherited
since

1.0

Type(s)

\Joomla\Registry\Registry