JTable::getKeyName: Difference between revisions
From Joomla! Documentation
m clean up |
m preparing for archive only |
||
| Line 4: | Line 4: | ||
Method to get the primary key field name for the table. | Method to get the primary key field name for the table. | ||
<source lang="php"> | <source lang="php"> | ||
| Line 17: | Line 17: | ||
* {{JVer|11.1}} Subpackage [[API17:Subpackage_Database|Database]] | * {{JVer|11.1}} Subpackage [[API17:Subpackage_Database|Database]] | ||
* [[API17:JTable::getKeyName|Other versions of JTable::getKeyName]] | * [[API17:JTable::getKeyName|Other versions of JTable::getKeyName]] | ||
===User contributed notes=== | ===User contributed notes=== | ||
=== Code Examples === | |||
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=JTable::getKeyName | category=JTable::getKeyName | ||
namespace=CodeExample | |||
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
Latest revision as of 03:47, 25 March 2017
JTable::getKeyName
Description
Method to get the primary key field name for the table.
public function getKeyName ()
- Returns string The name of the primary key for the table.
- Defined on line 291 of libraries/joomla/database/table.php
- Since

See also
JTable::getKeyName source code on BitBucket
Class JTable
Subpackage Database- Other versions of JTable::getKeyName
User contributed notes
Code Examples