API15

JModel/setDBO

From Joomla! Documentation

< API15:JModel
Revision as of 12:27, 25 March 2010 by Doxiki (talk | contribs)

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

[Edit Descripton]

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 />