JAdapterInstance/ construct: Difference between revisions
From Joomla! Documentation
New page: ===Description===
Constructor
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki>
</spa... |
No edit summary |
||
| Line 17: | Line 17: | ||
!Description | !Description | ||
|- | |- | ||
| | | &$parent | ||
| | | | ||
| $parent Parent object [ instance] | | $parent Parent object [ instance] | ||
|- | |- | ||
| | | &$db | ||
| | | | ||
| | | | ||
Revision as of 10:00, 30 March 2010
Description
Constructor
Template:Description:JAdapterInstance/ construct
Syntax
__construct(&$parent, &$db)
| Parameter Name | Default Value | Description |
|---|---|---|
| &$parent | $parent Parent object [ instance] | |
| &$db |
Returns
void
Defined in
libraries/joomla/base/adapterinstance.php
Importing
jimport( 'joomla.base.adapterinstance' );
Source Body
public function __construct(&$parent, &$db)
{
$this->parent =& $parent;
$this->db =& $db ? $db : JFactory::getDBO(); // pull in the global dbo in case
}
[Edit See Also] Template:SeeAlso:JAdapterInstance/ construct
Examples
<CodeExamplesForm />