Source for file html.php

Documentation is available at html.php

  1. <?php
  2. /**
  3.  * @package     Joomla.Administrator
  4.  * @subpackage  com_config
  5.  *
  6.  * @copyright   Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
  7.  * @license     GNU General Public License version 2 or later; see LICENSE.txt
  8.  */
  9.  
  10. defined('_JEXEC'or die;
  11.  
  12. /**
  13.  * View for the component configuration
  14.  *
  15.  * @package     Joomla.Administrator
  16.  * @subpackage  com_config
  17.  * @since       3.2
  18.  */
  19. {
  20.     public $state;
  21.  
  22.     public $form;
  23.  
  24.     public $component;
  25.  
  26.     /**
  27.      * Display the view
  28.      *
  29.      * @return  string  The rendered view.
  30.      *
  31.      * @since   3.2
  32.      *
  33.      */
  34.     public function render()
  35.     {
  36.         $form null;
  37.         $component null;
  38.  
  39.         try
  40.         {
  41.             $form $this->model->getForm();
  42.             $component    $this->model->getComponent();
  43.             $user JFactory::getUser();
  44.         }
  45.         catch (Exception $e)
  46.         {
  47.             JFactory::getApplication()->enqueueMessage($e->getMessage()'error');
  48.  
  49.             return false;
  50.         }
  51.  
  52.         // Bind the form to the data.
  53.         if ($form && $component->params)
  54.         {
  55.             $form->bind($component->params);
  56.         }
  57.  
  58.         $this->form = &$form;
  59.         $this->component = &$component;
  60.  
  61.         $this->components ConfigHelperConfig::getComponentsWithConfig();
  62.         ConfigHelperConfig::loadLanguageForComponents($this->components);
  63.  
  64.         $this->userIsSuperAdmin $user->authorise('core.admin');
  65.         $this->currentComponent JFactory::getApplication()->input->get('component');
  66.         $this->return JFactory::getApplication()->input->get('return''''base64');
  67.  
  68.         $this->addToolbar();
  69.         JFactory::getApplication()->input->set('hidemainmenu'true);
  70.  
  71.         return parent::render();
  72.     }
  73.  
  74.     /**
  75.      * Add the page title and toolbar.
  76.      *
  77.      * @return  void 
  78.      *
  79.      * @since   3.2
  80.      */
  81.     protected function addToolbar()
  82.     {
  83.         JToolbarHelper::title(JText::_($this->component->option '_configuration')'equalizer config');
  84.         JToolbarHelper::apply('config.save.component.apply');
  85.         JToolbarHelper::save('config.save.component.save');
  86.         JToolbarHelper::divider();
  87.         JToolbarHelper::cancel('config.cancel.component');
  88.         JToolbarHelper::divider();
  89.         JToolbarHelper::help('JHELP_SITE_GLOBAL_CONFIGURATION');
  90.     }
  91. }

Documentation generated on Tue, 19 Nov 2013 15:04:49 +0100 by phpDocumentor 1.4.3