CoreFiles by mySites.guru
json.php36 lines, 630 bytes, from Joomla_3.4.3-Stable-Full_Package.zip
Raw History Compare with 3.4.2
md5
b722cd81d7b4d8bab81554af6865e3fe
sha1
5beb69991eeb970938de92a4acefa0a50749aa61
sha256
c8dddadce2a0a2992e46d201e5eac789767c61cbc8dec5b75a359cd7650378b8
<?php
/**
 * @package     Joomla.Site
 * @subpackage  com_config
 *
 * @copyright   Copyright (C) 2005 - 2015 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

defined('_JEXEC') or die;

/**
 * Prototype admin view.
 *
 * @since  3.2
 */
abstract class ConfigViewCmsJson extends ConfigViewCmsHtml
{
	public $state;

	public $data;

	/**
	 * Method to render the view.
	 *
	 * @return  string  The rendered view.
	 *
	 * @since   3.2
	 */
	public function render()
	{
		$this->data = $this->model->getData();

		return json_encode($this->data);
	}
}

The same content is in 12 releases, Joomla 3.4.2-rc to 3.5.0-beta. See them all, or every version of this file.