[ Index ]

PHP Cross Reference of Joomla 1.5.26 DE

title

Body

[close]

/administrator/components/com_installer/views/modules/ -> 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 Modules View
  22   *
  23   * @package        Joomla
  24   * @subpackage    Installer
  25   * @since        1.5
  26   */
  27  
  28  include_once(dirname(__FILE__).DS.'..'.DS.'default'.DS.'view.php');
  29  
  30  class InstallerViewModules extends InstallerViewDefault
  31  {
  32  	function display($tpl=null)
  33      {
  34          /*
  35           * Set toolbar items for the page
  36           */
  37          JToolBarHelper::deleteList( '', 'remove', 'Uninstall' );
  38          JToolBarHelper::help( 'screen.installer' );
  39  
  40          // Get data from the model
  41          $state        = &$this->get('State');
  42          $items        = &$this->get('Items');
  43          $pagination    = &$this->get('Pagination');
  44  
  45          $lists = new stdClass();
  46          $select[] = JHTML::_('select.option', '-1', JText::_('All'));
  47          $select[] = JHTML::_('select.option', '0', JText::_('Site Modules'));
  48          $select[] = JHTML::_('select.option', '1', JText::_('Admin Modules'));
  49          $lists->client = JHTML::_('select.genericlist',  $select, 'client', 'class="inputbox" size="1" onchange="document.adminForm.submit();"', 'value', 'text', $state->get('filter.client'));
  50  
  51          $this->assignRef('items',        $items);
  52          $this->assignRef('pagination',    $pagination);
  53          $this->assignRef('lists',        $lists);
  54  
  55          JHTML::_('behavior.tooltip');
  56          parent::display($tpl);
  57      }
  58  
  59  	function loadItem($index=0)
  60      {
  61          $item =& $this->items[$index];
  62          $item->index    = $index;
  63  
  64          if ($item->iscore) {
  65              $item->cbd        = 'disabled';
  66              $item->style    = 'style="color:#999999;"';
  67          } else {
  68              $item->cbd        = null;
  69              $item->style    = null;
  70          }
  71          $item->author_info = @$item->authorEmail .'<br />'. @$item->authorUrl;
  72  
  73          $this->assignRef('item', $item);
  74      }
  75  }


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