JModel/setDBO
From Joomla! Documentation
< API15:JModel
The "API15" 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]
function setDBO(&$db)
{
$this->_db =& $db;
}
[Edit See Also] Template:SeeAlso:JModel/setDBO
Examples[edit]
<CodeExamplesForm />