PageRenderTime 47ms CodeModel.GetById 20ms RepoModel.GetById 0ms app.codeStats 0ms

/exchange/code/trunk/administrator/components/com_exchange/views/output/view.php

https://bitbucket.org/eddieajau/the-art-of-joomla-archive
PHP | 54 lines | 22 code | 6 blank | 26 comment | 0 complexity | 5560a3a835231c25452725b38faa4daf MD5 | raw file
  1. <?php
  2. /**
  3. * @version $Id: view.php 280 2010-09-18 02:14:15Z eddieajau $
  4. * @package NewLifeInIT
  5. * @subpackage com_exchange
  6. * @copyright Copyright 2005 - 2010 New Life in IT Pty Ltd. All rights reserved.
  7. * @license GNU General Public License version 2 or later.
  8. * @link http://www.theartofjoomla.com
  9. */
  10. // no direct access
  11. defined('_JEXEC') or die;
  12. jimport('joomla.application.component.view');
  13. /**
  14. * @package jXExchange
  15. */
  16. class ExchangeViewOutput extends JView
  17. {
  18. /**
  19. * Display the view
  20. *
  21. * @access public
  22. */
  23. function display($tpl=null)
  24. {
  25. $state = $this->get('State');
  26. $buffer = $state->get('buffer');
  27. $vars = $state->get('vars');
  28. $this->assignRef('buffer', $buffer);
  29. //if ($vars) {
  30. // $this->assignRef('vars', $vars);
  31. // $this->assign('showHeader', true);
  32. //} else {
  33. $this->assign('showHeader', false);
  34. //}
  35. $this->_setToolbar();
  36. parent::display($tpl);
  37. }
  38. /**
  39. * Display the toolbar
  40. * @access public
  41. */
  42. function _setToolbar()
  43. {
  44. JToolBarHelper::title(JText::_('JX Exchange: Export Result'), 'logo');
  45. JToolBarHelper::back();
  46. JToolBarHelper::help('index', 'true');
  47. }
  48. }