API16

API16:JTable/getKeyName

From Joomla! Documentation

Revision as of 15:26, 14 July 2015 by Waltsjt (talk | contribs) (try fixing links by adding API16: prefix)

Description

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

[Edit Descripton]

Template:Description:API16: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:API16:JTable/getKeyName

Examples

<CodeExamplesForm />