| [ Index ] |
PHP Cross Reference of Joomla 2.5.4 DE |
[Summary view] [Print] [Text view]
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 CacheViewCache extends JView 23 { 24 protected $client; 25 protected $data; 26 protected $pagination; 27 protected $state; 28 29 public function display($tpl = null) 30 { 31 $this->data = $this->get('Data'); 32 $this->client = $this->get('Client'); 33 $this->pagination = $this->get('Pagination'); 34 $this->state = $this->get('State'); 35 36 // Check for errors. 37 if (count($errors = $this->get('Errors'))) { 38 JError::raiseError(500, implode("\n", $errors)); 39 return false; 40 } 41 42 $this->addToolbar(); 43 parent::display($tpl); 44 } 45 46 /** 47 * Add the page title and toolbar. 48 * 49 * @since 1.6 50 */ 51 protected function addToolbar() 52 { 53 $user = JFactory::getUser(); 54 $condition = ($this->client->name == 'site'); 55 56 JToolBarHelper::title(JText::_('COM_CACHE_CLEAR_CACHE'), 'clear.png'); 57 JToolBarHelper::custom('delete', 'delete.png', 'delete_f2.png', 'JTOOLBAR_DELETE', true); 58 JToolBarHelper::divider(); 59 if (JFactory::getUser()->authorise('core.admin', 'com_cache')) { 60 JToolBarHelper::preferences('com_cache'); 61 } 62 JToolBarHelper::divider(); 63 JToolBarHelper::help('JHELP_SITE_MAINTENANCE_CLEAR_CACHE'); 64 } 65 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Tue Apr 3 11:40:28 2012 | Cross-referenced by PHPXref 0.7.1 |