CoreFiles by mySites.guru
HtmlView.php57 lines, 1,277 bytes, from Joomla_6.0.0-beta2-Beta-Full_Package.zip
Raw History Compare with 6.0.0-beta1
md5
6c661e29424320b30f36df5785d70b40
sha1
ec5cd017551074f908d074f4ba22c0e18f294709
sha256
7c433f72e77bc23bc1ba658b05f11e7bf801e56ea4b35eef34e578e8ffb2365f
<?php

/**
 * @package     Joomla.Administrator
 * @subpackage  com_banners
 *
 * @copyright   (C) 2009 Open Source Matters, Inc. <https://www.joomla.org>
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

namespace Joomla\Component\Banners\Administrator\View\Download;

use Joomla\CMS\Form\Form;
use Joomla\CMS\MVC\View\HtmlView as BaseHtmlView;
use Joomla\Component\Banners\Administrator\Model\DownloadModel;

// phpcs:disable PSR1.Files.SideEffects
\defined('_JEXEC') or die;
// phpcs:enable PSR1.Files.SideEffects

/**
 * View class for download a list of tracks.
 *
 * @since  1.6
 */
class HtmlView extends BaseHtmlView
{
    /**
     * The Form object
     *
     * @var    Form
     * @since  1.6
     */
    protected $form;

    /**
     * Display the view
     *
     * @param   string  $tpl  The name of the template file to parse; automatically searches through the template paths.
     *
     * @return  void
     *
     * @since   1.6
     *
     * @throws  \Exception
     */
    public function display($tpl = null): void
    {
        /** @var DownloadModel $model */
        $model = $this->getModel();
        $model->setUseExceptions(true);

        $this->form = $model->getForm();

        parent::display($tpl);
    }
}

The same content is in 71 releases, Joomla 5.4.0-beta2 to 6.2.1-rc1. See them all, or every version of this file.