Source for file item.php

Documentation is available at item.php

  1. <?php
  2. /**
  3.  * @package     Joomla.Legacy
  4.  * @subpackage  Model
  5.  *
  6.  * @copyright   Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
  7.  * @license     GNU General Public License version 2 or later; see LICENSE
  8.  */
  9.  
  10. defined('JPATH_PLATFORM'or die;
  11.  
  12. /**
  13.  * Prototype item model.
  14.  *
  15.  * @package     Joomla.Legacy
  16.  * @subpackage  Model
  17.  * @since       12.2
  18.  */
  19. abstract class JModelItem extends JModelLegacy
  20. {
  21.     /**
  22.      * An item.
  23.      *
  24.      * @var    array 
  25.      */
  26.     protected $_item = null;
  27.  
  28.     /**
  29.      * Model context string.
  30.      *
  31.      * @var    string 
  32.      * @since  12.2
  33.      */
  34.     protected $_context = 'group.type';
  35.  
  36.     /**
  37.      * Method to get a store id based on model configuration state.
  38.      *
  39.      * This is necessary because the model is used by the component and
  40.      * different modules that might need different sets of data or different
  41.      * ordering requirements.
  42.      *
  43.      * @param   string  $id  A prefix for the store id.
  44.      *
  45.      * @return  string  A store id.
  46.      *
  47.      * @since   12.2
  48.      */
  49.     protected function getStoreId($id '')
  50.     {
  51.         // Compile the store id.
  52.         return md5($id);
  53.     }
  54. }

Documentation generated on Tue, 19 Nov 2013 15:06:00 +0100 by phpDocumentor 1.4.3