- md5
- 3a2b2ebbf77f0d24427bf9773d8c9b44
- sha1
- 0a949a90e05383f6beb1cf7931d61e65b2c29f28
- sha256
- 371987565d6f4168e7b7eedda7c684910c0d106869aff3fd83e92bb2af515eb2
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
<?php
/**
* @package Joomla.Administrator
* @subpackage com_admin
*
* @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\Admin\Administrator\View\Help;
defined('_JEXEC') or die;
use Joomla\CMS\Language\Text;
use Joomla\CMS\MVC\View\HtmlView as BaseHtmlView;
use Joomla\CMS\Toolbar\ToolbarHelper;
/**
* HTML View class for the Admin component
*
* @since 1.6
*/
class HtmlView extends BaseHtmlView
{
/**
* The search string
*
* @var string
* @since 1.6
*/
protected $help_search = null;
/**
* The page to be viewed
*
* @var string
* @since 1.6
*/
protected $page = null;
/**
* The iso language tag
*
* @var string
* @since 1.6
*/
protected $lang_tag = null;
/**
* Table of contents
*
* @var array
* @since 1.6
*/
protected $toc = array();
/**
* URL for the latest version check
*
* @var string
* @since 1.6
*/
protected $latest_version_check = 'https://downloads.joomla.org/latest';
/**
* URL for the start here link
*
* @var string
* @since 1.6
*/
protected $start_here = null;
/**
* Execute and display a template script.
*
* @param string $tpl The name of the template file to parse; automatically searches through the template paths.
*
* @return mixed A string if successful, otherwise an Error object.
*
* @since 1.6
*/
public function display($tpl = null)
{
$this->help_search = $this->get('HelpSearch');
$this->page = $this->get('Page');
$this->toc = $this->get('Toc');
$this->lang_tag = $this->get('LangTag');
$this->latest_version_check = $this->get('LatestVersionCheck');
$this->addToolbar();
return parent::display($tpl);
}
/**
* Setup the Toolbar
*
* @return void
*
* @since 1.6
*/
protected function addToolbar()
{
ToolbarHelper::title(Text::_('COM_ADMIN_HELP'), 'support help_header');
}
}
The same content is in 2 releases, Joomla 4.0.0-alpha5 to 4.0.0-alpha6. See them all, or every version of this file.