CoreFiles by mySites.guru
HtmlView.php60 lines, 1,135 bytes, from Joomla_4.0.5-Stable-Full_Package.zip
Raw History Compare with 4.0.4
md5
11cc74ed4461d0a158ba2dc3d27df3ff
sha1
85dbe6ca1dbd5bd116cbe4d90fa2e63d236f533e
sha256
484913d1472f34ddff9a90249a2f666be5e63fa28dd06f804b021cd09c39a6b0
<?php
/**
 * @package     Joomla.Administrator
 * @subpackage  com_contenthistory
 *
 * @copyright   (C) 2013 Open Source Matters, Inc. <https://www.joomla.org>
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

namespace Joomla\Component\Contenthistory\Administrator\View\Compare;

\defined('_JEXEC') or die;

use Joomla\CMS\MVC\View\GenericDataException;
use Joomla\CMS\MVC\View\HtmlView as BaseHtmlView;

/**
 * View class for a list of contenthistory.
 *
 * @since  3.2
 */
class HtmlView extends BaseHtmlView
{
	/**
	 * An array of items
	 *
	 * @var  array
	 */
	protected $items;

	/**
	 * The model state
	 *
	 * @var  \JObject
	 */
	protected $state;

	/**
	 * Method to display the view.
	 *
	 * @param   string  $tpl  A template file to load. [optional]
	 *
	 * @return  void
	 *
	 * @since   3.2
	 */
	public function display($tpl = null)
	{
		$this->state = $this->get('State');
		$this->items = $this->get('Items');

		// Check for errors.
		if (count($errors = $this->get('Errors')))
		{
			throw new GenericDataException(implode("\n", $errors), 500);
		}

		parent::display($tpl);
	}
}

The same content is in 20 releases, Joomla 4.0.0-rc4 to 4.1.0-beta2. See them all, or every version of this file.