API16

JModel/setDbo

From Joomla! Documentation

< API16:JModel
Revision as of 04:58, 30 March 2010 by Doxiki (talk | contribs)

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

[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]

public function setDbo(&$db)
{
        $this->_db = &$db;
}

[Edit See Also] Template:SeeAlso:JModel/setDbo

Examples[edit]

<CodeExamplesForm />