JTable/getKeyName: Difference between revisions
From Joomla! Documentation
m try fixing links by adding API16: prefix |
m clean up |
||
| Line 2: | Line 2: | ||
Method to get the primary key field name for the table. | Method to get the primary key field name for the table. | ||
{{Description:API16:JTable/getKeyName}} | |||
{{subst:Description:API16:JTable/getKeyName}} | |||
===Syntax=== | ===Syntax=== | ||
| Line 28: | Line 26: | ||
</source> | </source> | ||
{{subst:SeeAlso:API16:JTable/getKeyName}} | |||
{{SeeAlso:API16:JTable/getKeyName}} | |||
===Examples=== | ===Examples=== | ||
Revision as of 14:29, 24 March 2017
Description
Method to get the primary key field name for the table.
{{subst: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;
}
{{subst:SeeAlso:API16:JTable/getKeyName}}
Examples
<CodeExamplesForm />