API15

Difference between revisions of "JTable/ construct"

From Joomla! Documentation

< API15:JTable
(New page: ===Description=== Object constructor to set table and key field <span class="editsection" style="font-size:76%;"> <nowiki>[</nowiki>Edit Descripton<...)
 
m (removing red link to edit, no existant pages)
(One intermediate revision by one other user not shown)
Line 3: Line 3:
  
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>[[Description:JTable/__construct|Edit Descripton]]<nowiki>]</nowiki>
+
<nowiki>[<! removed edit link to red link >]</nowiki>
 
</span>
 
</span>
  
{{Description:JTable/__construct}}
+
<! removed transcluded page call, red link never existed >
  
 
===Syntax===
 
===Syntax===
Line 25: Line 25:
 
|  $key name of the primary key field in the table  
 
|  $key name of the primary key field in the table  
 
|-
 
|-
|  
+
| &$db
 
|  
 
|  
 
|  $db  object  
 
|  $db  object  
Line 46: Line 46:
  
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>[[SeeAlso:JTable/__construct|Edit See Also]]<nowiki>]</nowiki>
+
<nowiki>[<! removed edit link to red link >]</nowiki>
 
</span>
 
</span>
{{SeeAlso:JTable/__construct}}
+
<! removed transcluded page call, red link never existed >
  
 
===Examples===
 
===Examples===
Line 61: Line 61:
 
  format= ,,,
 
  format= ,,,
 
</dpl>
 
</dpl>
 +
[[Category:Archived pages API15]]

Revision as of 13:51, 12 May 2013

The "API15" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.

Description[edit]

Object constructor to set table and key field

[<! removed edit link to red link >]

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

Syntax[edit]

__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[edit]

libraries/joomla/database/table.php

Importing[edit]

jimport( 'joomla.database.table' );

Source Body[edit]

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[edit]

<CodeExamplesForm />