Source for file controller.php

Documentation is available at controller.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.  * Config Component Controller
  14.  *
  15.  * @package     Joomla.Administrator
  16.  * @subpackage  com_config
  17.  * @since       1.5
  18.  */
  19. {
  20.     /**
  21.      * @var    string  The default view.
  22.      * @since  1.6
  23.      * @deprecated  4.0
  24.      */
  25.     protected $default_view = 'application';
  26.  
  27.     /**
  28.      * Method to display the view.
  29.      *
  30.      * @param   boolean  $cachable   If true, the view output will be cached
  31.      * @param   array    $urlparams  An array of safe url parameters and their variable types, for valid values see {@link JFilterInput::clean()}.
  32.      *
  33.      * @return  ConfigController  This object to support chaining.
  34.      *
  35.      * @since   1.5
  36.      * @deprecated  4.0
  37.      */
  38.     public function display($cachable false$urlparams array())
  39.     {
  40.         // Set the default view name and format from the Request.
  41.         $vName $this->input->get('view''application');
  42.  
  43.         JLog::add('ConfigController is deprecated. Use ConfigControllerApplicationDisplay or ConfigControllerComponentDisplay instead.'JLog::WARNING'deprecated');
  44.  
  45.         if (ucfirst($vName== 'Application')
  46.         {
  47.             $controller new ConfigControllerApplicationDisplay;
  48.         }
  49.         elseif (ucfirst($vName== 'Component')
  50.         {
  51.             $controller new ConfigControllerComponentDisplay;
  52.         }
  53.  
  54.         return $controller->execute();
  55.     }
  56. }

Documentation generated on Tue, 19 Nov 2013 14:57:02 +0100 by phpDocumentor 1.4.3