- md5
- 613df228a19b92afc2c5255ddd1a8e8f
- sha1
- 09a8e71699807e7f83c14f14a5066bb584e0f0c3
- sha256
- 6847a4bf65207165b0ef70e6bc517c0a85862b4c05a5ef221e034c1568322498
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
<?php
/**
* @package Joomla.Installation
* @subpackage View
*
* @copyright (C) 2017 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
namespace Joomla\CMS\Installation\View\Remove;
use Joomla\CMS\Installation\Model\ChecksModel;
use Joomla\CMS\Installation\Model\LanguagesModel;
use Joomla\CMS\MVC\View\HtmlView as BaseHtmlView;
use Joomla\CMS\Version;
// phpcs:disable PSR1.Files.SideEffects
\defined('_JEXEC') or die;
// phpcs:enable PSR1.Files.SideEffects
/**
* The HTML Joomla Core Install Remove View
*
* @since 3.1
*/
class HtmlView extends BaseHtmlView
{
/**
* Is the Joomla Version a development version?
*
* @var boolean
* @since 4.0.0
*/
protected $development;
/**
* List of language choices to install
*
* @var array
* @since 4.0.0
*/
protected $items;
/**
* Full list of recommended PHP Settings
*
* @var array
* @since 4.0.0
*/
protected $phpsettings;
/**
* Array of PHP config options
*
* @var array
* @since 4.0.0
*/
protected $phpoptions;
/**
* Array of PHP config options
*
* @var \stdClass
* @since 4.0.0
*/
protected $installed_languages;
/**
* If updates are disabled, we hide the box
*
* @var boolean
* @since 5.4.1
*/
protected $autoUpdatesDisabled = false;
/**
* Execute and display a template script.
*
* @param string|null $tpl The name of the template file to parse; automatically searches through the template paths.
*
* @return void
*
* @since 4.0.0
*/
public function display($tpl = null)
{
$this->development = (new Version())->isInDevelopmentState();
/** @var LanguagesModel $languagesModel */
$languagesModel = $this->getModel('Languages');
$this->items = $languagesModel->getItems();
$this->installed_languages = new \stdClass();
$this->installed_languages->administrator = $languagesModel->getInstalledlangsAdministrator();
$this->installed_languages->frontend = $languagesModel->getInstalledlangsFrontend();
/** @var ChecksModel $checksModel */
$checksModel = $this->getModel('Checks');
$this->phpoptions = $checksModel->getPhpOptions();
$this->phpsettings = $checksModel->getPhpSettings();
$this->autoUpdatesDisabled = $checksModel->getAutoUpdatesDisabled();
parent::display($tpl);
}
}
The same content is in 59 releases, Joomla 5.4.1-rc1 to 6.2.1-rc1. See them all, or every version of this file.