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 Discover 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->items        $this->get('Items');
  36.         $this->pagination    $this->get('Pagination');
  37.  
  38.         parent::display($tpl);
  39.     }
  40.  
  41.     /**
  42.      * Add the page title and toolbar.
  43.      *
  44.      * @return  void 
  45.      *
  46.      * @since   3.1
  47.      */
  48.     protected function addToolbar()
  49.     {
  50.         /*
  51.          * Set toolbar items for the page
  52.          */
  53.         JToolbarHelper::custom('discover.install''upload''upload''JTOOLBAR_INSTALL'truefalse);
  54.         JToolbarHelper::custom('discover.refresh''refresh''refresh''COM_INSTALLER_TOOLBAR_DISCOVER'falsefalse);
  55.         JToolbarHelper::divider();
  56.         JToolbarHelper::help('JHELP_EXTENSIONS_EXTENSION_MANAGER_DISCOVER');
  57.  
  58.         JHtmlSidebar::setAction('index.php?option=com_installer&view=discover');
  59.  
  60.         JHtmlSidebar::addFilter(
  61.             JText::_('COM_INSTALLER_VALUE_CLIENT_SELECT'),
  62.             'filter_client_id',
  63.             JHtml::_('select.options'array('0' => 'JSITE''1' => 'JADMINISTRATOR')'value''text'$this->state->get('filter.client_id')true)
  64.         );
  65.  
  66.         JHtmlSidebar::addFilter(
  67.             JText::_('COM_INSTALLER_VALUE_TYPE_SELECT'),
  68.             'filter_type',
  69.             JHtml::_('select.options'InstallerHelper::getExtensionTypes()'value''text'$this->state->get('filter.type')true)
  70.         );
  71.  
  72.         JHtmlSidebar::addFilter(
  73.             JText::_('COM_INSTALLER_VALUE_FOLDER_SELECT'),
  74.             'filter_group',
  75.             JHtml::_('select.options'array_merge(InstallerHelper::getExtensionGroupes()array('*' => JText::_('COM_INSTALLER_VALUE_FOLDER_NONAPPLICABLE')))'value''text'$this->state->get('filter.group')true)
  76.         );
  77.  
  78.         parent::addToolbar();
  79.     }
  80. }

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