API16

API16:JTable/getKeyName

From Joomla! Documentation

Revision as of 22:41, 22 March 2010 by Doxiki (talk | contribs) (New page: ===Description=== Method to get the primary key field name for the table. <span class="editsection" style="font-size:76%;"> <nowiki>[</nowiki>[[Description:JTable/getKeyName|Edit Desc...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Description

Method to get the primary key field name for the table.

[Edit Descripton]

Template:Description:JTable/getKeyName

Syntax

getKeyName()


Returns

string The name of the primary key for the table.

Defined in

libraries/joomla/database/table.php

Importing

jimport( 'joomla.database.table' );

Source Body

public function getKeyName()
{
        return $this->_tbl_key;
}

[Edit See Also] Template:SeeAlso:JTable/getKeyName

Examples

<CodeExamplesForm />