JTable/getKeyName: Difference between revisions
From Joomla! Documentation
m try fixing links by adding API16: prefix |
m preparing for archive only |
||
| (One intermediate revision by the same user not shown) | |||
| 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. | ||
===Syntax=== | ===Syntax=== | ||
| Line 28: | Line 26: | ||
</source> | </source> | ||
===Examples=== | ===Examples=== | ||
=== Code Examples === | |||
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=getKeyName | category=getKeyName | ||
category=JTable | category=JTable | ||
namespace=CodeExample | |||
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
Latest revision as of 02:09, 25 March 2017
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