- md5
- 1103bb0373fcb8de7fe5a8ec2f6202f8
- sha1
- cfc22ce794eec3d276d6e73e0e0eeee122edfe2e
- sha256
- e3b964ff2391f31f512ff2d3cd20dda9a0eda6bce9040cc1f9d774f53e0d4c37
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
<?php
/**
* @package Joomla.Administrator
* @subpackage com_config
*
* @copyright Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
/**
* Config Component Controller
*
* @since 1.5
* @deprecated 4.0
*/
class ConfigController extends JControllerLegacy
{
/**
* @var string The default view.
* @since 1.6
* @deprecated 4.0
*/
protected $default_view = 'application';
/**
* Method to display the 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 ConfigController This object to support chaining.
*
* @since 1.5
* @deprecated 4.0
*/
public function display($cachable = false, $urlparams = array())
{
// Set the default view name and format from the Request.
$vName = $this->input->get('view', 'application');
try
{
JLog::add(
sprintf('%s is deprecated. Use ConfigControllerApplicationDisplay or ConfigControllerComponentDisplay instead.', __CLASS__),
JLog::WARNING,
'deprecated'
);
}
catch (RuntimeException $exception)
{
// Informational log only
}
if (ucfirst($vName) == 'Application')
{
$controller = new ConfigControllerApplicationDisplay;
}
elseif (ucfirst($vName) == 'Component')
{
$controller = new ConfigControllerComponentDisplay;
}
return $controller->execute();
}
}
The same content is in 30 releases, Joomla 3.7.0-beta4 to 3.8.3. See them all, or every version of this file.