CoreFiles by mySites.guru
HtmlView.php56 lines, 1,212 bytes, from Joomla_6.1.1-Stable-Full_Package.zip
Raw History Compare with 6.1.0
md5
411ad54aa45a24ec47640cda6ed91432
sha1
918fb190537589284f16faf70e6824ef106a6c44
sha256
500830c2c247abb7c9371c05c3338de3d51465c3d2dfcf2fd070a95b479d4177
<?php

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

namespace Joomla\Component\Finder\Administrator\View\Statistics;

use Joomla\CMS\MVC\View\HtmlView as BaseHtmlView;
use Joomla\Component\Finder\Administrator\Model\StatisticsModel;

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

/**
 * Statistics view class for Finder.
 *
 * @since  2.5
 */
class HtmlView extends BaseHtmlView
{
    /**
     * The index statistics
     *
     * @var    \stdClass
     *
     * @since  3.6.1
     */
    protected $data;

    /**
     * Method to display the view.
     *
     * @param   string  $tpl  A template file to load. [optional]
     *
     * @return  void
     *
     * @since   2.5
     */
    public function display($tpl = null)
    {
        /** @var StatisticsModel $model */
        $model = $this->getModel();
        $model->setUseExceptions(true);

        // Load the view data.
        $this->data = $model->getData();

        parent::display($tpl);
    }
}

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