- md5
- 08300d910f4ec0bb42d664d22e7cf640
- sha1
- 662f4c948fbd9d318efefa57c1f29d7c24ba2f34
- sha256
- 5b59bb346ecf920f88f81aa0060d551f797f9704878b0c5db609839476070161
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
<?php
/**
* @package Joomla.Administrator
* @subpackage com_cache
* @copyright Copyright (C) 2005 - 2012 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 com_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 7 releases, Joomla 2.5.0 to 2.5.6. See them all, or every version of this file.