JModel/setDbo
From Joomla! Documentation
< API16:JModel
The "API16" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.
Description[edit]
Method to set the database connector object
Template:Description:JModel/setDbo
Syntax[edit]
setDbo(&$db)
Parameter Name | Default Value | Description |
---|---|---|
&$db | $db A based object |
Returns[edit]
void
Defined in[edit]
libraries/joomla/application/component/model.php
Importing[edit]
jimport( 'joomla.application.component.model' );
Source Body[edit]
public function setDbo(&$db)
{
$this->_db = &$db;
}
[Edit See Also] Template:SeeAlso:JModel/setDbo
Examples[edit]
<CodeExamplesForm />