[ Index ]

PHP Cross Reference of Joomla 2.5.4 DE

title

Body

[close]

/administrator/components/com_cache/views/purge/ -> view.html.php (source)

   1  <?php
   2  /**
   3   * @package        Joomla.Administrator
   4   * @subpackage    com_cache
   5   * @copyright    Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
   6   * @license        GNU General Public License version 2 or later; see LICENSE.txt
   7   */
   8  
   9  // no direct access
  10  defined('_JEXEC') or die;
  11  
  12  jimport('joomla.application.component.view');
  13  
  14  /**
  15   * HTML View class for the Cache component
  16   *
  17   * @static
  18   * @package        Joomla.Administrator
  19   * @subpackage    com_cache
  20   * @since 1.6
  21   */
  22  class CacheViewPurge extends JView
  23  {
  24  	public function display($tpl = null)
  25      {
  26          $this->addToolbar();
  27          parent::display($tpl);
  28      }
  29  
  30      /**
  31       * Add the page title and toolbar.
  32       *
  33       * @since    1.6
  34       */
  35  	protected function addToolbar()
  36      {
  37          //JSubMenuHelper::addEntry(JText::_('COM_CACHE_BACK_CACHE_MANAGER'), 'index.php?option=com_cache', false);
  38  
  39          JToolBarHelper::title(JText::_('COM_CACHE_PURGE_EXPIRED_CACHE'), 'purge.png');
  40          JToolBarHelper::custom('purge', 'delete.png', 'delete_f2.png', 'COM_CACHE_PURGE_EXPIRED', false);
  41          JToolBarHelper::divider();
  42          if (JFactory::getUser()->authorise('core.admin', 'com_cache')) {
  43              JToolBarHelper::preferences('com_cache');
  44              JToolBarHelper::divider();
  45          }
  46          JToolBarHelper::help('JHELP_SITE_MAINTENANCE_PURGE_EXPIRED_CACHE');
  47      }
  48  }


Generated: Tue Apr 3 11:40:28 2012 Cross-referenced by PHPXref 0.7.1