API16

JTable/getKeyName

From Joomla! Documentation

< API16:JTable
Revision as of 10:26, 14 July 2015 by Waltsjt (talk | contribs) (try fixing links by adding API16: prefix)

The "API16" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.

Description[edit]

Method to get the primary key field name for the table.

[Edit Descripton]

Template:Description:API16:JTable/getKeyName

Syntax[edit]

getKeyName()


Returns[edit]

string The name of the primary key for the table.

Defined in[edit]

libraries/joomla/database/table.php

Importing[edit]

jimport( 'joomla.database.table' );

Source Body[edit]

public function getKeyName()
{
        return $this->_tbl_key;
}

[Edit See Also] Template:SeeAlso:API16:JTable/getKeyName

Examples[edit]

<CodeExamplesForm />