[ Index ]

PHP Cross Reference of Joomla 2.5.4 DE

title

Body

[close]

/administrator/components/com_config/views/component/ -> view.html.php (source)

   1  <?php
   2  /**
   3   * @package        Joomla.Administrator
   4   * @subpackage    com_config
   5   * @copyright    Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
   6   * @license        GNU General Public License version 2 or later; see LICENSE.txt
   7   */
   8  
   9  // No direct access
  10  defined('_JEXEC') or die;
  11  
  12  jimport('joomla.application.component.view');
  13  
  14  /**
  15   * @package        Joomla.Administrator
  16   * @subpackage    com_config
  17   */
  18  class ConfigViewComponent extends JView
  19  {
  20      /**
  21       * Display the view
  22       */
  23  	function display($tpl = null)
  24      {
  25          $form        = $this->get('Form');
  26          $component    = $this->get('Component');
  27  
  28          // Check for errors.
  29          if (count($errors = $this->get('Errors'))) {
  30              JError::raiseError(500, implode("\n", $errors));
  31              return false;
  32          }
  33  
  34          // Bind the form to the data.
  35          if ($form && $component->params) {
  36              $form->bind($component->params);
  37          }
  38  
  39          $this->assignRef('form',        $form);
  40          $this->assignRef('component',    $component);
  41  
  42          $this->document->setTitle(JText::_('JGLOBAL_EDIT_PREFERENCES'));
  43  
  44          parent::display($tpl);
  45          JRequest::setVar('hidemainmenu', true);
  46      }
  47  }


Generated: Tue Apr 3 11:40:28 2012 Cross-referenced by PHPXref 0.7.1