Source for file controller.php
Documentation is available at controller.php
* @package Joomla.Administrator
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
* @package Joomla.Administrator
* @param boolean If true, the view output will be cached
* @param array An array of safe url parameters and their variable types, for valid values see {@link JFilterInput::clean()}.
* @return JController This object to support chaining.
public function display($cachable =
false, $urlparams =
false)
require_once JPATH_COMPONENT.
'/helpers/cache.php';
// Get the document object.
// Set the default view name and format from the Request.
$vName =
$this->input->get('view', 'cache');
$vFormat =
$document->getType();
$lName =
$this->input->get('layout', 'default');
// Get and render the view.
if ($view =
$this->getView($vName, $vFormat))
$view->setModel($model, true);
$view->setLayout($lName);
// Push document object into the view.
$view->document =
$document;
// Check for request forgeries
$cid =
$this->input->post->get('cid', array(), 'array');
$this->setRedirect('index.php?option=com_cache&client='.
$model->getClient()->id);
// Check for request forgeries
$msg =
JText::_('COM_CACHE_EXPIRED_ITEMS_HAVE_BEEN_PURGED');
$msg =
JText::_('COM_CACHE_EXPIRED_ITEMS_PURGING_ERROR');
$this->setRedirect('index.php?option=com_cache&view=purge', $msg, $msgType);
Documentation generated on Tue, 19 Nov 2013 14:57:06 +0100 by phpDocumentor 1.4.3