CoreFiles by mySites.guru
strings.json.php62 lines, 1,292 bytes, from Joomla_2.5.0-Stable-Full_Package.zip
Raw History Compare with 1.7.5
md5
b5f18b1def852262205089b422a0be4d
sha1
14fb87e7bb42ac16df680aaf11536a759e0fcaf9
sha256
d509f826db5fc83ea395d52704741dbeec1908d298161081df821113d713c7a8
<?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
 */

// Check to ensure this file is included in Joomla!
defined('_JEXEC') or die;

jimport('joomla.application.component.controlleradmin');

/**
 * 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.DS.'helpers'.DS.'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 4 releases, Joomla 2.5.0 to 2.5.3. See them all, or every version of this file.