- md5
- 5dfecfded8775655812140b493bdee8c
- sha1
- 065e3f93f090d11902c0977666573958c60ee872
- sha256
- 1f8ba0458fba9efb71ba0852204234cb66bbeceee9ba3bb49de938446be5607a
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
<?php
/**
* @version $Id: view.html.php 20196 2011-01-09 02:40:25Z ian $
* @package Joomla.Administrator
* @subpackage Cache
* @copyright Copyright (C) 2005 - 2011 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
// no direct access
defined('_JEXEC') or die;
jimport('joomla.application.component.view');
/**
* HTML View class for the Cache component
*
* @static
* @package Joomla.Administrator
* @subpackage Cache
* @since 1.6
*/
class CacheViewCache extends JView
{
protected $client;
protected $data;
protected $pagination;
protected $state;
public function display($tpl = null)
{
$this->data = $this->get('Data');
$this->client = $this->get('Client');
$this->pagination = $this->get('Pagination');
$this->state = $this->get('State');
// Check for errors.
if (count($errors = $this->get('Errors'))) {
JError::raiseError(500, implode("\n", $errors));
return false;
}
$this->addToolbar();
parent::display($tpl);
}
/**
* Add the page title and toolbar.
*
* @since 1.6
*/
protected function addToolbar()
{
$user = JFactory::getUser();
$condition = ($this->client->name == 'site');
JToolBarHelper::title(JText::_('COM_CACHE_CLEAR_CACHE'), 'clear.png');
JToolBarHelper::custom('delete', 'delete.png', 'delete_f2.png', 'JTOOLBAR_DELETE', true);
JToolBarHelper::divider();
if (JFactory::getUser()->authorise('core.admin', 'com_cache')) {
JToolBarHelper::preferences('com_cache');
}
JToolBarHelper::divider();
JToolBarHelper::help('JHELP_SITE_MAINTENANCE_CLEAR_CACHE');
}
}
The same content is in 2 releases, Joomla 1.6.0 to 1.6.1. See them all, or every version of this file.