/
githubmirror
/
joomla-cms
Обзор
Документация
Войти
/
githubmirror
/
joomla-cms
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
5.4-dev
installation/src/View/DefaultView.php
54 строки
1 KB
Hannes Papenberg
Update installation/src/View/DefaultView.php
01 окт 2024, 23:27
Не верифицирован
01 окт 2024, 23:27
a6ee123
Код
Авторство
О чём код?
<?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; use Joomla\CMS\Form\Form; use Joomla\CMS\MVC\View\HtmlView as BaseHtmlView; // phpcs:disable PSR1.Files.SideEffects \defined('_JEXEC') or die; // phpcs:enable PSR1.Files.SideEffects /** * Generic Installation View * * @since 3.1 */ class DefaultView extends BaseHtmlView { /** * The Form object * * @var Form * @since 3.1 */ protected $form; /** * 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) { $model = $this->getModel(); if (\is_callable([$model, 'getForm'])) { $this->form = $model->getForm(); } parent::display($tpl); } }