[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/installation/src/View/Remove/ -> HtmlView.php (source)

   1  <?php
   2  
   3  /**
   4   * @package     Joomla.Installation
   5   * @subpackage  View
   6   *
   7   * @copyright   (C) 2017 Open Source Matters, Inc. <https://www.joomla.org>
   8   * @license     GNU General Public License version 2 or later; see LICENSE.txt
   9   */
  10  
  11  namespace Joomla\CMS\Installation\View\Remove;
  12  
  13  use Joomla\CMS\Installation\View\DefaultView;
  14  use Joomla\CMS\Version;
  15  
  16  // phpcs:disable PSR1.Files.SideEffects
  17  \defined('_JEXEC') or die;
  18  // phpcs:enable PSR1.Files.SideEffects
  19  
  20  /**
  21   * The HTML Joomla Core Install Remove View
  22   *
  23   * @since  3.1
  24   */
  25  class HtmlView extends DefaultView
  26  {
  27      /**
  28       * Is the Joomla Version a development version?
  29       *
  30       * @var    boolean
  31       * @since  4.0.0
  32       */
  33      protected $development;
  34  
  35      /**
  36       * List of language choices to install
  37       *
  38       * @var    array
  39       * @since  4.0.0
  40       */
  41      protected $items;
  42  
  43      /**
  44       * Full list of recommended PHP Settings
  45       *
  46       * @var    array
  47       * @since  4.0.0
  48       */
  49      protected $phpsettings;
  50  
  51      /**
  52       * Array of PHP config options
  53       *
  54       * @var    array
  55       * @since  4.0.0
  56       */
  57      protected $phpoptions;
  58  
  59      /**
  60       * Array of PHP config options
  61       *
  62       * @var    \stdClass
  63       * @since  4.0.0
  64       */
  65      protected $installed_languages;
  66  
  67      /**
  68       * Execute and display a template script.
  69       *
  70       * @param   string|null  $tpl  The name of the template file to parse; automatically searches through the template paths.
  71       *
  72       * @return  void
  73       *
  74       * @since   4.0.0
  75       */
  76      public function display($tpl = null)
  77      {
  78          $this->development = (new Version())->isInDevelopmentState();
  79  
  80          $this->items = $this->get('Items', 'Languages');
  81  
  82          $this->installed_languages = new \stdClass();
  83          $this->installed_languages->administrator = $this->get('InstalledlangsAdministrator', 'Languages');
  84          $this->installed_languages->frontend = $this->get('InstalledlangsFrontend', 'Languages');
  85  
  86          $this->phpoptions = $this->get('PhpOptions', 'Checks');
  87          $this->phpsettings = $this->get('PhpSettings', 'Checks');
  88  
  89          parent::display($tpl);
  90      }
  91  }


Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer