- md5
- da180f1c06a406226e4d5405c84fab8a
- sha1
- 0a96164f0fed64f074b3fbb95f4ad647a06936a6
- sha256
- 671dc94a992f4ebed9daadce0235ff1f3b9b026dd152b576ea8d8c064b85b0b3
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
<?php
/**
* @package Joomla.Administrator
* @subpackage com_cache
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
/**
* HTML View class for the Cache component
*
* @static
* @package Joomla.Administrator
* @subpackage com_cache
* @since 1.6
*/
class CacheViewCache extends JViewLegacy
{
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 8 releases, Joomla 2.5.9 to 2.5.17. See them all, or every version of this file.