Source for file view.html.php

Documentation is available at view.html.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.  * HTML View class for the Cache component
  14.  *
  15.  * @package     Joomla.Administrator
  16.  * @subpackage  com_cache
  17.  * @since       1.6
  18.  */
  19. class CacheViewPurge extends JViewLegacy
  20. {
  21.     public function display($tpl null)
  22.     {
  23.         $this->addToolbar();
  24.         $this->sidebar JHtmlSidebar::render();
  25.         parent::display($tpl);
  26.     }
  27.  
  28.     /**
  29.      * Add the page title and toolbar.
  30.      *
  31.      * @since   1.6
  32.      */
  33.     protected function addToolbar()
  34.     {
  35.         //JHtmlSidebar::addEntry(JText::_('COM_CACHE_BACK_CACHE_MANAGER'), 'index.php?option=com_cache', false);
  36.  
  37.         JToolbarHelper::title(JText::_('COM_CACHE_PURGE_EXPIRED_CACHE')'lightning purge');
  38.         JToolbarHelper::custom('purge''delete.png''delete_f2.png''COM_CACHE_PURGE_EXPIRED'false);
  39.         JToolbarHelper::divider();
  40.         if (JFactory::getUser()->authorise('core.admin''com_cache'))
  41.         {
  42.             JToolbarHelper::preferences('com_cache');
  43.             JToolbarHelper::divider();
  44.         }
  45.         JToolbarHelper::help('JHELP_SITE_MAINTENANCE_PURGE_EXPIRED_CACHE');
  46.     }
  47. }

Documentation generated on Tue, 19 Nov 2013 15:17:33 +0100 by phpDocumentor 1.4.3