JTable/getKeyName: Difference between revisions
From Joomla! Documentation
New page: ===Description===
Method to get the primary key field name for the table.
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>[[Description:JTable/getKeyName|Edit Desc... |
m try fixing links by adding API16: prefix |
||
| Line 6: | Line 6: | ||
</span> | </span> | ||
{{Description:JTable/getKeyName}} | {{Description:API16:JTable/getKeyName}} | ||
===Syntax=== | ===Syntax=== | ||
| Line 29: | Line 29: | ||
<span class="editsection" style="font-size:76%;"> | <span class="editsection" style="font-size:76%;"> | ||
<nowiki>[</nowiki>[[SeeAlso:JTable/getKeyName|Edit See Also]]<nowiki>]</nowiki> | <nowiki>[</nowiki>[[SeeAlso:API16:JTable/getKeyName|Edit See Also]]<nowiki>]</nowiki> | ||
</span> | </span> | ||
{{SeeAlso:JTable/getKeyName}} | {{SeeAlso:API16:JTable/getKeyName}} | ||
===Examples=== | ===Examples=== | ||
Revision as of 15:26, 14 July 2015
Description
Method to get the primary key field name for the table.
Template: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;
}
[Edit See Also] Template:SeeAlso:API16:JTable/getKeyName
Examples
<CodeExamplesForm />