class JModelDatabase extends JModelBase

Joomla Platform Database Model Class

Methods

__construct( Registry $state = null, JDatabaseDriver $db = null)

Instantiate the model.

Registry
getState()

Get the model state.

void
setState( Registry $state)

Set the model state.

getDb()

Get the database driver.

void
setDb( JDatabaseDriver $db)

Set the database driver.

Details

__construct( Registry $state = null, JDatabaseDriver $db = null)

Instantiate the model.

Parameters

Registry $state The model state.
JDatabaseDriver $db The database adpater.

Registry getState()

Get the model state.

Return Value

Registry The state object.

void setState( Registry $state)

Set the model state.

Parameters

Registry $state The state object.

Return Value

void

JDatabaseDriver getDb()

Get the database driver.

Return Value

JDatabaseDriver The database driver.

void setDb( JDatabaseDriver $db)

Set the database driver.

Parameters

JDatabaseDriver $db The database driver.

Return Value

void