API16

API16:JTable/getKeyName

From Joomla! Documentation

Revision as of 02:09, 25 March 2017 by JoomlaWikiBot (talk | contribs) (preparing for archive only)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Description

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



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



Examples

Code Examples