AbstractDatabaseModel
Extends AbstractModel Implements DatabaseModelInterfaceJoomla Framework Database Model Class
abstract deprecated
| since |
1.0 |
|---|---|
| deprecated |
2.0 Implement the model interfaces directly; the concrete implementations are provided as traits |
| package |
Joomla Framework |
Methods
__construct
Instantiate the model.
__construct(\Joomla\Registry\Registry state = null) : mixed
inherited
| since |
1.0 |
|---|
Arguments
- state
\Joomla\Registry\RegistryThe model state.
Response
mixed
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.
| since |
1.0 |
|---|
Type(s)
\Joomla\Database\DatabaseDriver
state
The model state.
inherited
| since |
1.0 |
|---|
Type(s)
\Joomla\Registry\Registry