JAdapterInstance/ construct: Difference between revisions
From Joomla! Documentation
No edit summary |
m removing red link to edit, no existant pages |
||
| Line 3: | Line 3: | ||
<span class="editsection" style="font-size:76%;"> | <span class="editsection" style="font-size:76%;"> | ||
<nowiki>[< | <nowiki>[<! removed edit link to red link >]</nowiki> | ||
</span> | </span> | ||
<! removed transcluded page call, red link never existed > | |||
===Syntax=== | ===Syntax=== | ||
| Line 44: | Line 44: | ||
<span class="editsection" style="font-size:76%;"> | <span class="editsection" style="font-size:76%;"> | ||
<nowiki>[< | <nowiki>[<! removed edit link to red link >]</nowiki> | ||
</span> | </span> | ||
<! removed transcluded page call, red link never existed > | |||
===Examples=== | ===Examples=== | ||
| Line 59: | Line 59: | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
[[Category:Archived pages API16]] | |||
Revision as of 01:57, 13 May 2013
Description
Constructor
[<! removed edit link to red link >]
<! removed transcluded page call, red link never existed >
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
}
[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >
Examples
<CodeExamplesForm />