- md5
- b69e5330c80fd1df5204e5621b293681
- sha1
- 92d82e332279d723bbf26b547bc7a624d82a49fc
- sha256
- e065ab05a089a6ee25321fcfed22db79ecc24dd6e7bb680a46ee464faf3a59cb
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
<?php
/**
* @package Joomla.Administrator
* @subpackage com_checkin
*
* @copyright Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
namespace Joomla\Component\Checkin\Administrator\View\Checkin;
defined('_JEXEC') or die;
use Joomla\CMS\MVC\View\HtmlView as BaseHtmlView;
/**
* HTML View class for the Checkin component
*
* @since 1.0
*/
class HtmlView extends BaseHtmlView
{
/**
* An array of items
*
* @var array
*/
protected $items;
/**
* The pagination object
*
* @var \Joomla\CMS\Pagination\Pagination
*/
protected $pagination;
/**
* The model state
*
* @var \JObject
*/
protected $state;
/**
* The sidebar markup
*
* @var string
*/
protected $sidebar;
/**
* Form object for search filters
*
* @var \JForm
* @since __DEPLOY_VERSION__
*/
public $filterForm;
/**
* The active search filters
*
* @var array
* @since __DEPLOY_VERSION__
*/
public $activeFilters;
/**
* 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.
*/
public function display($tpl = null)
{
$this->items = $this->get('Items');
$this->pagination = $this->get('Pagination');
$this->state = $this->get('State');
$this->total = $this->get('Total');
$this->filterForm = $this->get('FilterForm');
$this->activeFilters = $this->get('ActiveFilters');
// Check for errors.
if (count($errors = $this->get('Errors')))
{
throw new \JViewGenericdataexception(implode("\n", $errors), 500);
}
$this->addToolbar();
$this->sidebar = \JHtmlSidebar::render();
return parent::display($tpl);
}
/**
* Add the page title and toolbar.
*
* @return void
*
* @since 1.6
*/
protected function addToolbar()
{
\JToolbarHelper::title(\JText::_('COM_CHECKIN_GLOBAL_CHECK_IN'), 'checkin');
\JToolbarHelper::custom('checkin', 'checkin.png', 'checkin_f2.png', 'JTOOLBAR_CHECKIN', true);
if (\JFactory::getUser()->authorise('core.admin', 'com_checkin'))
{
\JToolbarHelper::divider();
\JToolbarHelper::preferences('com_checkin');
\JToolbarHelper::divider();
}
\JToolbarHelper::help('JHELP_SITE_MAINTENANCE_GLOBAL_CHECK-IN');
}
}
No other release has this exact content. See every version of this file.