- md5
- a538f732d5be7bff4557167df5f86880
- sha1
- d28bd6d8fd90ae865e26320b9c10e2335f468cae
- sha256
- 7a2983341b84d9232a0d8f9f0086317f8f5bf47694f79710dd77c4677dc2e5f5
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
<?php
/**
* @package Joomla.Administrator
* @subpackage com_installer
*
* @copyright Copyright (C) 2005 - 2020 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
JLoader::register('InstallerViewDefault', dirname(__DIR__) . '/default/view.php');
/**
* Extension Manager Update Sites View
*
* @package Joomla.Administrator
* @subpackage com_installer
* @since 3.4
*/
class InstallerViewUpdatesites extends InstallerViewDefault
{
protected $items;
protected $pagination;
protected $form;
protected $state;
/**
* Display the view
*
* @param string $tpl Template
*
* @return mixed|void
*
* @since 3.4
*
* @throws Exception on errors
*/
public function display($tpl = null)
{
// Get data from the model
$this->state = $this->get('State');
$this->items = $this->get('Items');
$this->pagination = $this->get('Pagination');
$this->filterForm = $this->get('FilterForm');
$this->activeFilters = $this->get('ActiveFilters');
// Check for errors.
if (count($errors = $this->get('Errors')))
{
throw new Exception(implode("\n", $errors), 500);
}
// Include the component HTML helpers.
JHtml::addIncludePath(JPATH_COMPONENT . '/helpers/html');
// Display the view
parent::display($tpl);
}
/**
* Add the page title and toolbar.
*
* @return void
*
* @since 3.4
*/
protected function addToolbar()
{
$canDo = JHelperContent::getActions('com_installer');
if ($canDo->get('core.edit.state'))
{
JToolbarHelper::publish('updatesites.publish', 'JTOOLBAR_ENABLE', true);
JToolbarHelper::unpublish('updatesites.unpublish', 'JTOOLBAR_DISABLE', true);
JToolbarHelper::divider();
}
if ($canDo->get('core.delete'))
{
JToolbarHelper::deleteList('JGLOBAL_CONFIRM_DELETE', 'updatesites.delete', 'JTOOLBAR_DELETE');
JToolbarHelper::divider();
}
if ($canDo->get('core.admin') || $canDo->get('core.options'))
{
JToolbarHelper::custom('updatesites.rebuild', 'refresh.png', 'refresh_f2.png', 'JTOOLBAR_REBUILD', false);
}
JHtmlSidebar::setAction('index.php?option=com_installer&view=updatesites');
parent::addToolbar();
JToolbarHelper::help('JHELP_EXTENSIONS_EXTENSION_MANAGER_UPDATESITES');
}
}
The same content is in 30 releases, Joomla 3.9.15-rc to 3.10.0-alpha1. See them all, or every version of this file.