Actions

API15

JTable/ construct

From Joomla! Documentation

< API15:JTable
Replacement filing cabinet.png
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

[<! removed edit link to red link >]

<! removed transcluded page call, red link never existed >

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;
}

[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >

Examples

<CodeExamplesForm />