- md5
- e2afdd7c50bfa91600d7f41a237a4afd
- sha1
- f9d5f7d0e65d89676ff5d484564f7b2ca66256c3
- sha256
- 9cb210dc51d8fc735cf67051a568d177d6af50390c73b2241baa2f5a85c4d977
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
<?php
/**
* @version $Id: controller.php 20196 2011-01-09 02:40:25Z ian $
* @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 10 releases, Joomla 1.6.0 to 1.7.2. See them all, or every version of this file.