CoreFiles by mySites.guru
HtmlView.php72 lines, 1,693 bytes, from Joomla_4.0.0-alpha3-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha2
md5
186009423ecf3abb9fee8502a6e89777
sha1
7c913d263a6a77b9aaf92ec58103b429af813eba
sha256
8aaa9d8ba0da1d6a514a6fbc9704b526609ebcf9b60f3e1d43a0e8b89904b794
<?php
/**
 * @package     Joomla.Administrator
 * @subpackage  com_postinstall
 *
 * @copyright   Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */
namespace Joomla\Component\Postinstall\Administrator\View\Messages;

defined('_JEXEC') or die;

use Joomla\CMS\MVC\View\HtmlView as BaseHtmlView;
use Joomla\Component\Postinstall\Administrator\Model\MessagesModel;

/**
 * Model class to display postinstall messages
 *
 * @since  3.2
 */
class HtmlView extends BaseHtmlView
{
	/**
	 * Executes before rendering the page for the Browse task.
	 *
	 * @param   string  $tpl  Subtemplate to use
	 *
	 * @return  boolean  Return true to allow rendering of the page
	 *
	 * @since   3.2
	 */
	public function display($tpl = null)
	{
		/** @var MessagesModel $model */
		$model = $this->getModel();

		$this->items = $model->getItems();

		$this->eid = (int) $model->getState('eid', '700', 'int');

		if (empty($this->eid))
		{
			$this->eid = 700;
		}

		$this->toolbar();

		$this->token = \JFactory::getSession()->getFormToken();
		$this->extension_options = $model->getComponentOptions();

		\JToolbarHelper::title(\JText::sprintf('COM_POSTINSTALL_MESSAGES_TITLE', $model->getExtensionName($this->eid)));

		return parent::display($tpl);
	}

	/**
	 * displays the toolbar
	 *
	 * @return  void
	 *
	 * @since   3.6
	 */
	private function toolbar()
	{
		// Options button.
		if (\JFactory::getUser()->authorise('core.admin', 'com_postinstall'))
		{
			\JToolbarHelper::preferences('com_postinstall', 550, 875);
			\JToolbarHelper::help('JHELP_COMPONENTS_POST_INSTALLATION_MESSAGES');
		}
	}
}

No other release has this exact content. See every version of this file.