joomla_test/libraries/legacy/model/item.php

55 lines
1.0 KiB
PHP
Raw Normal View History

2020-01-02 22:20:31 +07:00
<?php
/**
* @package Joomla.Legacy
* @subpackage Model
*
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE
*/
defined('JPATH_PLATFORM') or die;
/**
* Prototype item model.
*
* @package Joomla.Legacy
* @subpackage Model
* @since 12.2
*/
abstract class JModelItem extends JModelLegacy
{
/**
* An item.
*
* @var array
*/
protected $_item = null;
/**
* Model context string.
*
* @var string
* @since 12.2
*/
protected $_context = 'group.type';
/**
* 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 12.2
*/
protected function getStoreId($id = '')
{
// Compile the store id.
return md5($id);
}
}