[ Index ]

PHP Cross Reference of Joomla 1.5.26 DE

title

Body

[close]

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

   1  <?php
   2  /**
   3   * @version        $Id: view.php 14401 2010-01-26 14:10:00Z louis $
   4   * @package        Joomla
   5   * @subpackage    Menus
   6   * @copyright    Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved.
   7   * @license        GNU/GPL, see LICENSE.php
   8   * Joomla! is free software. This version may have been modified pursuant
   9   * to the GNU General Public License, and as distributed it includes or
  10   * is derivative of works licensed under the GNU General Public License or
  11   * other free or open source software licenses.
  12   * See COPYRIGHT.php for copyright notices and details.
  13   */
  14  
  15  // no direct access
  16  defined( '_JEXEC' ) or die( 'Restricted access' );
  17  
  18  jimport('joomla.application.component.view');
  19  
  20  /**
  21   * Extension Manager Plugins View
  22   *
  23   * @package        Joomla
  24   * @subpackage    Installer
  25   * @since        1.5
  26   */
  27  include_once(dirname(__FILE__).DS.'..'.DS.'default'.DS.'view.php');
  28  
  29  class InstallerViewPlugins extends InstallerViewDefault
  30  {
  31  	function display($tpl=null)
  32      {
  33          /*
  34           * Set toolbar items for the page
  35           */
  36          JToolBarHelper::deleteList( '', 'remove', 'Uninstall' );
  37          JToolBarHelper::help( 'screen.installer' );
  38  
  39          // Get data from the model
  40          $state        = &$this->get('State');
  41          $items        = &$this->get('Items');
  42          $pagination    = &$this->get('Pagination');
  43          $groups        = &$this->get('Groups');
  44  
  45          $fields = new stdClass();
  46          $fields->groups = JHTML::_('select.genericlist',   $groups, 'group', 'class="inputbox" size="1" onchange="document.adminForm.submit( );"', 'value', 'text', $state->get('filter.group') );
  47  
  48          $this->assignRef('items',        $items);
  49          $this->assignRef('pagination',    $pagination);
  50          $this->assignRef('fields',        $fields);
  51  
  52          parent::display($tpl);
  53      }
  54  
  55  	function loadItem($index=0)
  56      {
  57          $item =& $this->items[$index];
  58          $item->index    = $index;
  59  
  60          if ($item->iscore) {
  61              $item->cbd        = 'disabled';
  62              $item->style    = 'style="color:#999999;"';
  63          } else {
  64              $item->cbd        = null;
  65              $item->style    = null;
  66          }
  67          $item->author_info = @$item->authorEmail .'<br />'. @$item->authorUrl;
  68  
  69          $this->assignRef('item', $item);
  70      }
  71  }


Generated: Wed Mar 28 15:54:07 2012 Cross-referenced by PHPXref 0.7.1