PageRenderTime 48ms CodeModel.GetById 17ms RepoModel.GetById 1ms app.codeStats 0ms

/aamenu/code/trunk/administrator/components/com_aamenu/views/config/view.html.php

https://bitbucket.org/eddieajau/the-art-of-joomla-archive
PHP | 49 lines | 18 code | 6 blank | 25 comment | 1 complexity | aca807e0d0376d96d5e3fd447ef166c4 MD5 | raw file
  1. <?php
  2. /**
  3. * @version $Id: view.html.php 255 2010-08-20 09:43:07Z eddieajau $
  4. * @copyright Copyright (C) 2009 New Life in IT Pty Ltd. All rights reserved.
  5. * @license GNU General Public License <http://www.gnu.org/copyleft/gpl.html>
  6. * @link http://www.theartofjoomla.com
  7. */
  8. // no direct access
  9. defined('_JEXEC') or die();
  10. // import library dependencies
  11. jimport('joomla.application.component.view');
  12. /**
  13. * The configuration view
  14. *
  15. * @package Artof.AAMenu
  16. * @subpackage com_aamenu
  17. */
  18. class MenuViewConfig extends JView
  19. {
  20. /**
  21. * Method to display the view.
  22. *
  23. * @access public
  24. * @param string $tpl A template file to load.
  25. * @return mixed JError object on failure, void on success.
  26. * @throws object JError
  27. * @since 1.0
  28. */
  29. function display($tpl = null)
  30. {
  31. $state = &$this->get('State');
  32. $params = &$state->get('params');
  33. // Check for errors.
  34. if (count($errors = $this->get('Errors'))) {
  35. JError::raiseError(500, implode("\n", $errors));
  36. return false;
  37. }
  38. // Push out the view data.
  39. $this->assignRef('state', $state);
  40. $this->assignRef('params', $params);
  41. parent::display($tpl);
  42. }
  43. }