JTableComponent/ construct: Difference between revisions
From Joomla! Documentation
New page:
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki>
</span>
{{Description:JTableCompon... |
No edit summary |
||
| Line 15: | Line 15: | ||
!Description | !Description | ||
|- | |- | ||
| | | &$db | ||
| | | | ||
| A database connector object | | A database connector object | ||
Revision as of 17:31, 25 March 2010
Template:Description:JTableComponent/ construct
Syntax
__construct(&$db)
| Parameter Name | Default Value | Description |
|---|---|---|
| &$db | A database connector object |
Defined in
libraries/joomla/database/table/component.php
Importing
jimport( 'joomla.database.table.component' );
Source Body
function __construct( &$db ) {
parent::__construct( '#__components', 'id', $db );
}
[Edit See Also] Template:SeeAlso:JTableComponent/ construct
Examples
<CodeExamplesForm />