Source for file controller.php
Documentation is available at controller.php
* @package Joomla.Administrator
* @subpackage com_content
* @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
* @subpackage com_content
* @var string The default view.
* Method to display a view.
* @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)
$view =
$this->input->get('view', 'articles');
$layout =
$this->input->get('layout', 'articles');
$id =
$this->input->getInt('id');
if ($view ==
'article' &&
$layout ==
'edit' &&
!$this->checkEditId('com_content.edit.article', $id))
// Somehow the person just went to the form - we don't allow that.
Documentation generated on Tue, 19 Nov 2013 14:57:09 +0100 by phpDocumentor 1.4.3