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 Update View
  16.  *
  17.  * @package     Joomla.Administrator
  18.  * @subpackage  com_installer
  19.  * @since       1.6
  20.  */
  21. {
  22.     /**
  23.      * List of update items
  24.      *
  25.      * @var array 
  26.      */
  27.     protected $items;
  28.  
  29.     /**
  30.      * Model state object
  31.      *
  32.      * @var  object 
  33.      */
  34.     protected $state;
  35.  
  36.     /**
  37.      * List pagination
  38.      *
  39.      * @var JPagination 
  40.      */
  41.     protected $pagination;
  42.  
  43.     /**
  44.      * Display the view
  45.      *
  46.      * @param   string  $tpl  Template
  47.      *
  48.      * @return  void 
  49.      *
  50.      * @since   1.6
  51.      */
  52.     public function display($tpl null)
  53.     {
  54.         $app JFactory::getApplication();
  55.  
  56.         // Get data from the model
  57.         $this->state = $this->get('State');
  58.         $this->items = $this->get('Items');
  59.         $this->pagination = $this->get('Pagination');
  60.         $paths new stdClass;
  61.         $paths->first '';
  62.  
  63.         $this->paths &$paths;
  64.         if (count($this->items0)
  65.         {
  66.             $app->enqueueMessage(JText::_('COM_INSTALLER_MSG_WARNINGS_UPDATE_NOTICE')'notice');
  67.         }
  68.         parent::display($tpl);
  69.     }
  70.  
  71.     /**
  72.      * Add the page title and toolbar.
  73.      *
  74.      * @return  void 
  75.      *
  76.      * @since   1.6
  77.      */
  78.     protected function addToolbar()
  79.     {
  80.         JToolbarHelper::custom('update.update''upload''upload''COM_INSTALLER_TOOLBAR_UPDATE'truefalse);
  81.         JToolbarHelper::custom('update.find''refresh''refresh''COM_INSTALLER_TOOLBAR_FIND_UPDATES'falsefalse);
  82.         JToolbarHelper::divider();
  83.  
  84.         JToolbarHelper::help('JHELP_EXTENSIONS_EXTENSION_MANAGER_UPDATE');
  85.         JHtmlSidebar::setAction('index.php?option=com_installer&view=manage');
  86.  
  87.         JHtmlSidebar::addFilter(
  88.             JText::_('COM_INSTALLER_VALUE_CLIENT_SELECT'),
  89.             'filter_client_id',
  90.             JHtml::_('select.options'array('0' => 'JSITE''1' => 'JADMINISTRATOR')'value''text'$this->state->get('filter.client_id')true)
  91.         );
  92.  
  93.         JHtmlSidebar::addFilter(
  94.             JText::_('COM_INSTALLER_VALUE_TYPE_SELECT'),
  95.             'filter_type',
  96.             JHtml::_('select.options'InstallerHelper::getExtensionTypes()'value''text'$this->state->get('filter.type')true)
  97.         );
  98.  
  99.         JHtmlSidebar::addFilter(
  100.             JText::_('COM_INSTALLER_VALUE_FOLDER_SELECT'),
  101.             'filter_group',
  102.             JHtml::_(
  103.                 'select.options',
  104.                 array_merge(InstallerHelper::getExtensionGroupes()array('*' => JText::_('COM_INSTALLER_VALUE_FOLDER_NONAPPLICABLE'))),
  105.                 'value',
  106.                 'text',
  107.                 $this->state->get('filter.group'),
  108.                 true
  109.             )
  110.         );
  111.         parent::addToolbar();
  112.     }
  113. }

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