- md5
- 71252f96914688ac664f6319cfa878f1
- sha1
- 9311c7b50959a90552424b5785955c090a4277cf
- sha256
- 0bda84e513c4652ada0ff26fae41c5ef156092c5d6bacca03e6db7856a3de4b0
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
<?php
/**
* @package Joomla.Administrator
* @subpackage com_joomlaupdate
*
* @copyright Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
/**
* Joomla! Update's Default View
*
* @package Joomla.Administrator
* @subpackage com_installer
* @since 2.5.4
*/
class JoomlaupdateViewDefault extends JViewLegacy
{
/**
* Renders the view
*
* @param string $tpl Template name
*
* @return void
*
* @since 2.5.4
*/
public function display($tpl = null)
{
// Get data from the model
$this->state = $this->get('State');
// Load useful classes
$model = $this->getModel();
$this->loadHelper('select');
// Assign view variables
$ftp = $model->getFTPOptions();
$this->assign('updateInfo', $model->getUpdateInformation());
$this->assign('methodSelect', JoomlaupdateHelperSelect::getMethods($ftp['enabled']));
// Set the toolbar information
JToolbarHelper::title(JText::_('COM_JOOMLAUPDATE_OVERVIEW'), 'arrow-up-2 install');
JToolbarHelper::custom('update.purge', 'purge', 'purge', 'JTOOLBAR_PURGE_CACHE', false, false);
// Add toolbar buttons
if (JFactory::getUser()->authorise('core.admin', 'com_joomlaupdate'))
{
JToolbarHelper::preferences('com_joomlaupdate');
}
JToolBarHelper::divider();
JToolBarHelper::help('JHELP_COMPONENTS_JOOMLA_UPDATE');
// Load mooTools
JHtml::_('behavior.framework', true);
// Include jQuery
JHtml::_('jquery.framework');
// Load our Javascript
$document = JFactory::getDocument();
$document->addScript('../media/com_joomlaupdate/default.js');
JHtml::_('stylesheet', 'media/mediamanager.css', array(), true);
if (!is_null($this->updateInfo['object']))
{
// Show the message if a update is found.
JFactory::getApplication()->enqueueMessage(JText::_('COM_JOOMLAUPDATE_VIEW_DEFAULT_UPDATE_NOTICE'), 'notice');
}
// Render the view
parent::display($tpl);
}
}
The same content is in 5 releases, Joomla 3.3.2 to 3.3.6. See them all, or every version of this file.