Source for file view.html.php

Documentation is available at view.html.php

  1. <?php
  2. /**
  3.  * @package     Joomla.Administrator
  4.  * @subpackage  com_joomlaupdate
  5.  *
  6.  * @copyright   Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
  7.  * @license     GNU General Public License version 2 or later; see LICENSE.txt
  8.  */
  9.  
  10. defined('_JEXEC'or die;
  11.  
  12. /**
  13.  * Joomla! Update's Default View
  14.  *
  15.  * @package     Joomla.Administrator
  16.  * @subpackage  com_installer
  17.  * @since       2.5.4
  18.  */
  19. {
  20.     /**
  21.      * Renders the view
  22.      *
  23.      * @param   string  $tpl  Template name
  24.      *
  25.      * @return void 
  26.      *
  27.      * @since  2.5.4
  28.      */
  29.     public function display($tpl=null)
  30.     {
  31.         // Get data from the model
  32.         $this->state $this->get('State');
  33.  
  34.         // Load useful classes
  35.         $model $this->getModel();
  36.         $this->loadHelper('select');
  37.  
  38.         // Assign view variables
  39.         $ftp $model->getFTPOptions();
  40.         $this->assign('updateInfo'$model->getUpdateInformation());
  41.         $this->assign('methodSelect'JoomlaupdateHelperSelect::getMethods($ftp['enabled']));
  42.  
  43.         // Set the toolbar information
  44.         JToolbarHelper::title(JText::_('COM_JOOMLAUPDATE_OVERVIEW')'arrow-up-2 install');
  45.         JToolbarHelper::custom('update.purge''purge''purge''JTOOLBAR_PURGE_CACHE'falsefalse);
  46.  
  47.         // Add toolbar buttons
  48.         if (JFactory::getUser()->authorise('core.admin''com_joomlaupdate'))
  49.         {
  50.             JToolbarHelper::preferences('com_joomlaupdate');
  51.         }
  52.         JToolBarHelper::divider();
  53.         JToolBarHelper::help('JHELP_COMPONENTS_JOOMLA_UPDATE');
  54.  
  55.         // Load mooTools
  56.         JHtml::_('behavior.framework'true);
  57.  
  58.         // Load our Javascript
  59.         $document JFactory::getDocument();
  60.         $document->addScript('../media/com_joomlaupdate/default.js');
  61.         JHtml::_('stylesheet''media/mediamanager.css'array()true);
  62.  
  63.         // Render the view
  64.         parent::display($tpl);
  65.     }
  66.  
  67. }

Documentation generated on Tue, 19 Nov 2013 15:18:03 +0100 by phpDocumentor 1.4.3