CoreFiles by mySites.guru
DefaultView.php54 lines, 1,139 bytes, from Joomla_6.0.2-Stable-Full_Package.zip
Raw History Compare with 6.0.1
md5
593b267e086ed964e8b09ed5be6a5237
sha1
8dcb082c542e79623047fdb2b339a9c96e55023a
sha256
108cbcec721c151642e336bbcfb7c25f8f7cfcb89d6b1f6439d1e600aa1d34bd
<?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);
    }
}

The same content is in 97 releases, Joomla 5.3.0-alpha1 to 6.2.1-rc1. See them all, or every version of this file.