Difference between revisions of "JModel/setDBO"
From Joomla! Documentation
< API15:JModel
(New page: ===Description===
Method to set the database connector object
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>Edit Descripton<nowiki>...) |
|||
Line 17: | Line 17: | ||
!Description | !Description | ||
|- | |- | ||
− | | | + | | &$db |
| | | | ||
| $db A based object | | $db A based object |
Revision as of 12:27, 25 March 2010
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 />