Source for file cache.php

Documentation is available at cache.php

  1. <?php
  2. /**
  3.  * @package     Joomla.Administrator
  4.  * @subpackage  com_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.txt
  8.  */
  9.  
  10. defined('_JEXEC'or die;
  11.  
  12. /**
  13.  * Cache component helper.
  14.  *
  15.  * @package     Joomla.Administrator
  16.  * @subpackage  com_cache
  17.  * @since       1.6
  18.  */
  19. {
  20.     /**
  21.      * Get a list of filter options for the application clients.
  22.      *
  23.      * @return  array  An array of JHtmlOption elements.
  24.      */
  25.     public static function getClientOptions()
  26.     {
  27.         // Build the filter options.
  28.         $options    array();
  29.         $options[]    JHtml::_('select.option''0'JText::_('JSITE'));
  30.         $options[]    JHtml::_('select.option''1'JText::_('JADMINISTRATOR'));
  31.         return $options;
  32.     }
  33.  
  34.     /**
  35.      * Configure the Linkbar.
  36.      *
  37.      * @param   string    The name of the active view.
  38.      *
  39.      * @return  void 
  40.      * @since   1.6
  41.      */
  42.     public static function addSubmenu($vName)
  43.     {
  44.         JHtmlSidebar::addEntry(
  45.             JText::_('JGLOBAL_SUBMENU_CHECKIN'),
  46.             'index.php?option=com_checkin',
  47.             $vName == 'com_checkin'
  48.         );
  49.  
  50.         JHtmlSidebar::addEntry(
  51.             JText::_('JGLOBAL_SUBMENU_CLEAR_CACHE'),
  52.             'index.php?option=com_cache',
  53.             $vName == 'cache'
  54.         );
  55.         JHtmlSidebar::addEntry(
  56.             JText::_('JGLOBAL_SUBMENU_PURGE_EXPIRED_CACHE'),
  57.             'index.php?option=com_cache&view=purge',
  58.             $vName == 'purge'
  59.         );
  60.     }
  61. }

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