| [ Index ] |
PHP Cross Reference of Joomla 1.5.26 DE |
[Summary view] [Print] [Text view]
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 Default View 22 * 23 * @package Joomla 24 * @subpackage Installer 25 * @since 1.5 26 */ 27 class InstallerViewDefault extends JView 28 { 29 function __construct($config = null) 30 { 31 parent::__construct($config); 32 $this->_addPath('template', $this->_basePath.DS.'views'.DS.'default'.DS.'tmpl'); 33 } 34 35 function display($tpl=null) 36 { 37 /* 38 * Set toolbar items for the page 39 */ 40 JToolBarHelper::title( JText::_( 'Extension Manager'), 'install.png' ); 41 42 // Document 43 $document = & JFactory::getDocument(); 44 $document->setTitle(JText::_('Extension Manager').' : '.JText::_( $this->getName() )); 45 46 // Get data from the model 47 $state = &$this->get('State'); 48 49 // Are there messages to display ? 50 $showMessage = false; 51 if ( is_object($state) ) 52 { 53 $message1 = $state->get('message'); 54 $message2 = $state->get('extension.message'); 55 $showMessage = ( $message1 || $message2 ); 56 } 57 58 $this->assign('showMessage', $showMessage); 59 $this->assignRef('state', $state); 60 61 JHTML::_('behavior.tooltip'); 62 parent::display($tpl); 63 } 64 65 /** 66 * Should be overloaded by extending view 67 * 68 * @param int $index 69 */ 70 function loadItem($index=0) 71 { 72 } 73 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Wed Mar 28 15:54:07 2012 | Cross-referenced by PHPXref 0.7.1 |