- md5
- b495917c9514ebbeb8f6f5da7e52db89
- sha1
- e78611afcbcf7cf235a193c899e6efd97193d7e8
- sha256
- 47ee43e0ed6c57a582e9114c6bfae446106d5b6f897d87263146d7b979da41fd
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
<?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);
// Render the view
parent::display($tpl);
}
}
The same content is in 2 releases, Joomla 3.3.0 to 3.3.1. See them all, or every version of this file.