- md5
- cd77c2a9e006a4071039afa3c104173c
- sha1
- d3ef2df984ef45168a63823755b2d67d930759da
- sha256
- 47622e9ae58f80e722bde391ffab7ebb4e326f1b02269390ebbb90677aee3930
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
<?php
/**
* @package Joomla.Installation
* @subpackage View
*
* @copyright Copyright (C) 2005 - 2020 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
/**
* The Installation Install View
*
* @since 3.1
*/
class InstallationViewInstallHtml extends JViewHtml
{
/**
* Redefine the model so the correct type hinting is available.
*
* @var InstallationModelSetup
* @since 3.1
*/
protected $model;
/**
* The session options
*
* @var array
* @since 3.1
*/
protected $options;
/**
* The installation tasks to perform
*
* @var array
* @since 3.1
*/
protected $tasks = array();
/**
* Method to render the view.
*
* @return string The rendered view.
*
* @since 3.1
*/
public function render()
{
$this->options = $this->model->getOptions();
/*
* Prepare the tasks array
* Note: The first character of the task *MUST* be capitalised or the application will not find the task
*/
$this->tasks[] = $this->options['db_old'] === 'remove' ? 'Database_remove' : 'Database_backup';
$this->tasks[] = 'Database';
if ($this->options['sample_file'])
{
$this->tasks[] = 'Sample';
}
$this->tasks[] = 'Config';
if ($this->options['summary_email'])
{
$this->tasks[] = 'Email';
}
return parent::render();
}
}
The same content is in 30 releases, Joomla 3.9.15-rc to 3.10.0-alpha1. See them all, or every version of this file.