API16

JTable/getKeyName: Difference between revisions

From Joomla! Documentation

Waltsjt (talk | contribs)
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.


<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>[[Description:JTable/getKeyName|Edit Descripton]]<nowiki>]</nowiki>
</span>


{{Description:API16:JTable/getKeyName}}
 
{{subst:Description:API16:JTable/getKeyName}}


===Syntax===
===Syntax===
Line 28: Line 26:
</source>
</source>


<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:API16:JTable/getKeyName|Edit See Also]]<nowiki>]</nowiki>
{{subst:SeeAlso:API16:JTable/getKeyName}}
</span>
{{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 />