Back to Table class

Method getId

public mixed
getId
()
Returns the identity (primary key) value of this record
Returns
  • mixed
Since
  • 4.0.0
Class: Table
Project: Joomla

Method getId - Source code

/**
 * Returns the identity (primary key) value of this record
 *
 * @return  mixed
 *
 * @since   4.0.0
 */
public function getId()
{
    $key = $this->getKeyName();
    return $this->{$key};
}