Back to Content class

Method _getAssetName

protected string
_getAssetName
()
Method to compute the default name of the asset.
Returns
  • string
Since
  • 1.6
Class: Content
Project: Joomla

Method _getAssetName - Source code

/**
 * Method to compute the default name of the asset.
 * The default name is in the form table_name.id
 * where id is the value of the primary key of the table.
 *
 * @return  string
 *
 * @since   1.6
 */
protected function _getAssetName()
{
    $k = $this->_tbl_key;
    return 'com_content.article.' . (int) $this->{$k};
}