b0y-101 Mini Shell


Current Path : E:/www2/risk/administrator/components/com_akeebabackup/src/View/Log/
File Upload :
Current File : E:/www2/risk/administrator/components/com_akeebabackup/src/View/Log/RawView.php

<?php
/**
 * @package   akeebabackup
 * @copyright Copyright (c)2006-2022 Nicholas K. Dionysopoulos / Akeeba Ltd
 * @license   GNU General Public License version 3, or later
 */

namespace Akeeba\Component\AkeebaBackup\Administrator\View\Log;

defined('_JEXEC') or die;

use Akeeba\Component\AkeebaBackup\Administrator\Model\LogModel;
use Joomla\CMS\MVC\View\HtmlView as BaseHtmlView;

#[\AllowDynamicProperties]
class RawView extends BaseHtmlView
{
	/**
	 * Currently selected log file tag
	 *
	 * @var  string
	 */
	public $tag;

	/**
	 * Renders the actual log content, for use in the IFRAME
	 *
	 * @return  void
	 */
	public function display($tpl = null)
	{
		/** @var LogModel $model */
		$model = $this->getModel();
		$tag   = $model->getState('tag', '');

		if (empty($tag))
		{
			$tag = null;
		}

		$this->tag = $tag;

		$this->setLayout('raw');

		parent::display($tpl);
	}


}

Copyright © 2019 by b0y-101