CoreFiles by mySites.guru
json.php36 lines, 627 bytes, from Joomla_3.4.1-Stable-Full_Package.zip
Raw History Compare with 3.4.0
md5
075ae620284b25a22832504db87c7675
sha1
a62b649fbc42f5228a5ab2b0d98b613a5cfe0f45
sha256
f93a890d0c62b13bd3a6234af536b072a27aa70a275ed09a18be9617760284a9
<?php
/**
 * @package     Joomla.Cms
 * @subpackage  View
 *
 * @copyright   Copyright (C) 2005 - 2015 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE
 */

defined('JPATH_PLATFORM') 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 8 releases, Joomla 3.4.0-beta1 to 3.4.1. See them all, or every version of this file.