Source for file helper.php

Documentation is available at helper.php

  1. <?php
  2. /**
  3.  * @package     Joomla.Platform
  4.  * @subpackage  Cache
  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.  * Cache storage helper functions.
  14.  *
  15.  * @package     Joomla.Platform
  16.  * @subpackage  Cache
  17.  * @since       11.1
  18.  */
  19. {
  20.     /**
  21.      * Cache data group
  22.      *
  23.      * @var    string 
  24.      * @since  11.1
  25.      */
  26.     public $group = '';
  27.  
  28.     /**
  29.      * Cached item size
  30.      *
  31.      * @var    string 
  32.      * @since  11.1
  33.      */
  34.     public $size = 0;
  35.  
  36.     /**
  37.      * Counter
  38.      *
  39.      * @var    integer 
  40.      * @since  11.1
  41.      */
  42.     public $count = 0;
  43.  
  44.     /**
  45.      * Constructor
  46.      *
  47.      * @param   string  $group  The cache data group
  48.      *
  49.      * @since   11.1
  50.      */
  51.     public function __construct($group)
  52.     {
  53.         $this->group = $group;
  54.     }
  55.  
  56.     /**
  57.      * Increase cache items count.
  58.      *
  59.      * @param   string  $size  Cached item size
  60.      *
  61.      * @return  void 
  62.      *
  63.      * @since   11.1
  64.      */
  65.     public function updateSize($size)
  66.     {
  67.         $this->size = number_format($this->size + $size2'.''');
  68.         $this->count++;
  69.     }
  70. }

Documentation generated on Tue, 19 Nov 2013 15:04:35 +0100 by phpDocumentor 1.4.3