CoreFiles by mySites.guru
strings.json.php60 lines, 1,195 bytes, from Joomla_3.0.2-Stable-Full_Package.zip
Raw History Compare with 3.0.1
md5
5b9d6be681eeb038ff55311f8e9e45ef
sha1
e9aedd587af00d8603c5bb2973cf4e18449cf2eb
sha256
4f5ad516bbf2edb7e1e15c0012e449d895e5f8f5ffa944423976e615257a11e6
<?php
/**
 * @package     Joomla.Administrator
 * @subpackage  com_languages
 *
 * @copyright   Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

defined('_JEXEC') or die;

/**
 * Languages Strings JSON Controller
 *
 * @package     Joomla.Administrator
 * @subpackage  com_languages
 * @since       2.5
 */
class LanguagesControllerStrings extends JControllerAdmin
{
	/**
	 * Constructor
	 *
	 * @param		array	An optional associative array of configuration settings
	 *
	 * @return	void
	 *
	 * @since		2.5
	 */
	public function __construct($config = array())
	{
		parent::__construct($config);

		require_once JPATH_COMPONENT . '/helpers/jsonresponse.php';
	}

	/**
	 * Method for refreshing the cache in the database with the known language strings
	 *
	 * @return	void
	 *
	 * @since		2.5
	 */
	public function refresh()
	{
		echo new JJsonResponse($this->getModel('strings')->refresh());
	}

	/**
	 * Method for searching language strings
	 *
	 * @return	void
	 *
	 * @since		2.5
	 */
	public function search()
	{
		echo new JJsonResponse($this->getModel('strings')->search());
	}
}

The same content is in 3 releases, Joomla 3.0.0 to 3.0.2. See them all, or every version of this file.