Back to Table class

Method _getAssetName

protected string
_getAssetName
()
Method to compute the default name of the asset.
Returns
  • string
Since
  • 1.7.0
Class: Table
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.7.0
 */
protected function _getAssetName()
{
    $keys = array();
    foreach ($this->_tbl_keys as $k) {
        $keys[] = (int) $this->{$k};
    }
    return $this->_tbl . '.' . implode('.', $keys);
}