Actions

API15

JTable/ construct

From Joomla! ドキュメンテーション

This page contains changes which are not marked for translation.

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 />