[ Index ]

PHP Cross Reference of Joomla 2.5.4 DE

title

Body

[close]

/administrator/components/com_installer/views/discover/ -> view.html.php (source)

   1  <?php
   2  /**
   3   * @package        Joomla.Administrator
   4   * @subpackage    com_installer
   5   * @copyright    Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
   6   * @license        GNU General Public License version 2 or later; see LICENSE.txt
   7   */
   8  
   9  // no direct access
  10  defined('_JEXEC') or die;
  11  
  12  include_once dirname(__FILE__).'/../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  class InstallerViewDiscover extends InstallerViewDefault
  22  {
  23      /**
  24       * @since    1.6
  25       */
  26  	function display($tpl=null)
  27      {
  28          // Get data from the model
  29          $this->state        = $this->get('State');
  30          $this->items        = $this->get('Items');
  31          $this->pagination    = $this->get('Pagination');
  32  
  33          parent::display($tpl);
  34      }
  35  
  36      /**
  37       * Add the page title and toolbar.
  38       *
  39       * @since    1.6
  40       */
  41  	protected function addToolbar()
  42      {
  43          $canDo    = InstallerHelper::getActions();
  44          /*
  45           * Set toolbar items for the page
  46           */
  47          JToolBarHelper::custom('discover.install', 'upload', 'upload', 'JTOOLBAR_INSTALL', true, false);
  48          JToolBarHelper::custom('discover.refresh', 'refresh', 'refresh', 'COM_INSTALLER_TOOLBAR_DISCOVER', false, false);
  49          JToolBarHelper::custom('discover.purge', 'purge', 'purge', 'JTOOLBAR_PURGE_CACHE', false, false);
  50          JToolBarHelper::divider();
  51          parent::addToolbar();
  52          JToolBarHelper::help('JHELP_EXTENSIONS_EXTENSION_MANAGER_DISCOVER');
  53      }
  54  }


Generated: Tue Apr 3 11:40:28 2012 Cross-referenced by PHPXref 0.7.1