API15:JTable/ construct
From Joomla! Documentation
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.
Contents |
Description
Object constructor to set table and key field
Syntax
__construct($table, $key, &$db)
| Parameter Name | Default Value | Description |
|---|---|---|
| $table | $table name of the table in the db schema relating to child class | |
| $key | $key name of the primary key field in the table | |
| &$db | $db object |
Defined in
libraries/joomla/database/table.php
Importing
jimport( 'joomla.database.table' );
Source Body
function __construct( $table, $key, &$db ) { $this->_tbl = $table; $this->_tbl_key = $key; $this->_db =& $db; }
[Edit See Also] SeeAlso:JTable/ construct
Examples
<CodeExamplesForm />
