Source for file component.php

Documentation is available at component.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.  * Note: this view is intended only to be opened in a popup
  14.  *
  15.  * @package     Joomla.Administrator
  16.  * @subpackage  com_config
  17.  * @since       1.5
  18.  * @deprecated  4.0
  19.  */
  20. {
  21.     /**
  22.      * Class Constructor
  23.      *
  24.      * @param   array  $config  An optional associative array of configuration settings.
  25.      *
  26.      * @since   1.5
  27.      * @deprecated  4.0
  28.      */
  29.     public function __construct($config array())
  30.     {
  31.         parent::__construct($config);
  32.  
  33.         // Map the apply task to the save method.
  34.         $this->registerTask('apply''save');
  35.     }
  36.  
  37.     /**
  38.      * Cancel operation
  39.      *
  40.      * @return  void 
  41.      *
  42.      * @since   3.0
  43.      * @deprecated  4.0  Use ConfigControllerComponentCancel instead.
  44.      */
  45.     function cancel()
  46.     {
  47.         JLog::add('ConfigControllerComponent is deprecated. Use ConfigControllerComponentCancel instead.'JLog::WARNING'deprecated');
  48.  
  49.         $controller new ConfigControllerComponentCancel;
  50.  
  51.         $controller->execute();
  52.     }
  53.  
  54.     /**
  55.      * Save the configuration
  56.      * @deprecated  4.0  Use ConfigControllerComponentSave instead.
  57.      */
  58.     public function save()
  59.     {
  60.         JLog::add('ConfigControllerComponent is deprecated. Use ConfigControllerComponentSave instead.'JLog::WARNING'deprecated');
  61.  
  62.         $controller new ConfigControllerComponentSave;
  63.  
  64.         return $controller->execute();
  65.     }
  66. }

Documentation generated on Tue, 19 Nov 2013 14:56:11 +0100 by phpDocumentor 1.4.3