Source for file cachehandler.php

Documentation is available at cachehandler.php

  1. <?php
  2. /**
  3.  * @package     Joomla.Platform
  4.  * @subpackage  Form
  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. /**
  14.  * Form Field class for the Joomla Platform.
  15.  * Provides a list of available cache handlers
  16.  *
  17.  * @package     Joomla.Platform
  18.  * @subpackage  Form
  19.  * @see         JCache
  20.  * @since       11.1
  21.  */
  22. {
  23.     /**
  24.      * The form field type.
  25.      *
  26.      * @var    string 
  27.      * @since  11.1
  28.      */
  29.     protected $type = 'CacheHandler';
  30.  
  31.     /**
  32.      * Method to get the field options.
  33.      *
  34.      * @return  array  The field option objects.
  35.      *
  36.      * @since   11.1
  37.      */
  38.     protected function getOptions()
  39.     {
  40.         $options array();
  41.  
  42.         // Convert to name => name array.
  43.         foreach (JCache::getStores(as $store)
  44.         {
  45.             $options[JHtml::_('select.option'$storeJText::_('JLIB_FORM_VALUE_CACHE_' $store)'value''text');
  46.         }
  47.  
  48.         $options array_merge(parent::getOptions()$options);
  49.  
  50.         return $options;
  51.     }
  52. }

Documentation generated on Tue, 19 Nov 2013 14:54:53 +0100 by phpDocumentor 1.4.3