CoreFiles by mySites.guru
DisplayController.php43 lines, 1,118 bytes, from Joomla_4.0.1-Stable-Full_Package.zip
Raw History Compare with 4.0.0
md5
4faa625565e7e0df41b2cd58764b20ca
sha1
9a0b3fc0ef4e8c5e186b9e2bfe868a0e22f14d56
sha256
542ad7bb4e67d85d236abe7308841f35711cdf7ea7259501d38b49bc737bcd0b
<?php
/**
 * @package     Joomla.Site
 * @subpackage  com_wrapper
 *
 * @copyright   (C) 2009 Open Source Matters, Inc. <https://www.joomla.org>
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

namespace Joomla\Component\Wrapper\Site\Controller;

\defined('_JEXEC') or die;

use Joomla\CMS\MVC\Controller\BaseController;

/**
 * Content Component Controller
 *
 * @since  1.5
 */
class DisplayController extends BaseController
{
	/**
	 * Method to display a view.
	 *
	 * @param   boolean  $cachable   If true, the view output will be cached
	 * @param   array    $urlparams  An array of safe URL parameters and their variable types, for valid values see {@link JFilterInput::clean()}.
	 *
	 * @return  BaseController  This object to support chaining.
	 *
	 * @since   1.5
	 */
	public function display($cachable = false, $urlparams = array())
	{
		$cachable = true;

		// Set the default view name and format from the Request.
		$vName = $this->input->get('view', 'wrapper');
		$this->input->set('view', $vName);

		return parent::display($cachable, array('Itemid' => 'INT'));
	}
}

The same content is in 42 releases, Joomla 4.0.1 to 4.2.0-beta2. See them all, or every version of this file.