- md5
- 764cdc3bfc270063d97cd2fedacbd6e4
- sha1
- bf4ae4952a895032a19eea2c29c8d436510692ef
- sha256
- f2443a5baa8bfb95b5b24dab0dc2785a5cdc7de2192b3815b162117c92057362
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
<?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
* @since 2.5.4
*/
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'), 'install');
// 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);
// 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 11 releases, Joomla 2.5.18 to 2.5.28. See them all, or every version of this file.