Source for file json.php

Documentation is available at json.php

  1. <?php
  2. /**
  3.  * @package     Joomla.Cms
  4.  * @subpackage  View
  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
  8.  */
  9.  
  10. defined('JPATH_PLATFORM'or die;
  11.  
  12. /**
  13.  * Prototype admin view.
  14.  *
  15.  * @package     Joomla.Libraries
  16.  * @subpackage  Model
  17.  * @since       3.2
  18.  */
  19. abstract class ConfigViewCmsJson extends ConfigViewCmsHtml
  20. {
  21.     public $state;
  22.  
  23.     public $data;
  24.  
  25.     /**
  26.      * Method to render the view.
  27.      *
  28.      * @return  string  The rendered view.
  29.      *
  30.      * @since   3.2
  31.      */
  32.     public function render()
  33.     {
  34.         $this->data = $this->model->getData();
  35.  
  36.         return json_encode($this->data);
  37.     }
  38. }

Documentation generated on Tue, 19 Nov 2013 15:06:17 +0100 by phpDocumentor 1.4.3