API16

JTable/getKeyName: Difference between revisions

From Joomla! Documentation

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


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


{{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>
 
</span>
{{SeeAlso:API16:JTable/getKeyName}}


===Examples===
===Examples===
<CodeExamplesForm />
=== Code Examples ===
<dpl>
<dpl>
  noresultsheader=\n
  noresultsheader=\n
  category=getKeyName
  category=getKeyName
  category=JTable
  category=JTable
  category=CodeExample
  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