Back to ItemModel class

Method getStoreId

protected string
getStoreId
(mixed $id = '')
Method to get a store id based on model configuration state.
Parameters
  • string $id A prefix for the store id.
Returns
  • string A store id.
Since
  • 1.6
Class: ItemModel
Project: Joomla

Method getStoreId - Source code

/**
 * Method to get a store id based on model configuration state.
 *
 * This is necessary because the model is used by the component and
 * different modules that might need different sets of data or different
 * ordering requirements.
 *
 * @param   string  $id  A prefix for the store id.
 *
 * @return  string  A store id.
 *
 * @since   1.6
 */
protected function getStoreId($id = '')
{
    // Compile the store id.
    return md5($id);
}