Source for file view.html.php

Documentation is available at view.html.php

  1. <?php
  2. /**
  3.  * @package     Joomla.Administrator
  4.  * @subpackage  com_installer
  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. include_once __DIR__ . '/../default/view.php';
  13.  
  14. /**
  15.  * Extension Manager Manage View
  16.  *
  17.  * @package     Joomla.Administrator
  18.  * @subpackage  com_installer
  19.  * @since       1.6
  20.  */
  21. {
  22.     /**
  23.      * Display the view
  24.      *
  25.      * @param   string  $tpl  Template
  26.      *
  27.      * @return  void 
  28.      *
  29.      * @since   1.6
  30.      */
  31.     public function display($tpl null)
  32.     {
  33.         // Get data from the model
  34.         $this->state $this->get('State');
  35.         $this->changeSet $this->get('Items');
  36.         $this->errors $this->changeSet->check();
  37.         $this->results $this->changeSet->getStatus();
  38.         $this->schemaVersion $this->get('SchemaVersion');
  39.         $this->updateVersion $this->get('UpdateVersion');
  40.         $this->filterParams  $this->get('DefaultTextFilters');
  41.         $this->schemaVersion ($this->schemaVersion?  $this->schemaVersion JText::_('JNONE');
  42.         $this->updateVersion ($this->updateVersion?  $this->updateVersion JText::_('JNONE');
  43.         $this->pagination $this->get('Pagination');
  44.         $this->errorCount count($this->errors);
  45.  
  46.         if (!(strncmp($this->schemaVersionJVERSION5=== 0))
  47.         {
  48.             $this->errorCount++;
  49.         }
  50.         if (!$this->filterParams)
  51.         {
  52.             $this->errorCount++;
  53.         }
  54.         if (($this->updateVersion != JVERSION))
  55.         {
  56.             $this->errorCount++;
  57.         }
  58.  
  59.         parent::display($tpl);
  60.     }
  61.  
  62.     /**
  63.      * Add the page title and toolbar.
  64.      *
  65.      * @return  void 
  66.      *
  67.      * @since   1.6
  68.      */
  69.     protected function addToolbar()
  70.     {
  71.         /*
  72.          * Set toolbar items for the page
  73.          */
  74.         JToolbarHelper::custom('database.fix''refresh''refresh''COM_INSTALLER_TOOLBAR_DATABASE_FIX'falsefalse);
  75.         JToolbarHelper::divider();
  76.         parent::addToolbar();
  77.         JToolbarHelper::help('JHELP_EXTENSIONS_EXTENSION_MANAGER_DATABASE');
  78.     }
  79. }

Documentation generated on Tue, 19 Nov 2013 15:17:16 +0100 by phpDocumentor 1.4.3