- md5
- bd34a46a803a557fe5bbffb934ff0d19
- sha1
- 965aa15d2d29cf967f4cbd0b835a1e60b75170ab
- sha256
- c72c446ae30124a6c76ed17927c6dbff077d400becaa9a00079ae19f8b79131c
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
<?php
/**
* @version $Id: controller.php 22338 2011-11-04 17:24:53Z github_bot $
* @package Joomla.Administrator
* @subpackage com_installer
* @copyright Copyright (C) 2005 - 2011 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License, see LICENSE.php
*/
// No direct access.
defined('_JEXEC') or die;
jimport('joomla.application.component.controller');
/**
* Installer Controller
*
* @package Joomla.Administrator
* @subpackage com_installer
* @since 1.5
*/
class InstallerController extends JController
{
/**
* 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.
* @since 1.5
*/
public function display($cachable = false, $urlparams = false)
{
require_once JPATH_COMPONENT.'/helpers/installer.php';
// Get the document object.
$document = JFactory::getDocument();
// Set the default view name and format from the Request.
$vName = JRequest::getCmd('view', 'install');
$vFormat = $document->getType();
$lName = JRequest::getCmd('layout', 'default');
// Get and render the view.
if ($view = $this->getView($vName, $vFormat)) {
$ftp = JClientHelper::setCredentialsFromRequest('ftp');
$view->assignRef('ftp', $ftp);
// Get the model for the view.
$model = $this->getModel($vName);
// Push the model into the view (as default).
$view->setModel($model, true);
$view->setLayout($lName);
// Push document object into the view.
$view->assignRef('document', $document);
// Load the submenu.
InstallerHelper::addSubmenu($vName);
$view->display();
}
return $this;
}
}
The same content is in 3 releases, Joomla 1.7.3 to 1.7.5. See them all, or every version of this file.