API16

API16:JTable/getKeyName

From Joomla! Documentation

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