CoreFiles by mySites.guru
StringsController.php47 lines, 968 bytes, from Joomla_4.0.0-alpha5-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha3
md5
270751ff126bd3d21443b86fce7f5368
sha1
b3b14b4fe502f97050c64fcd7431e0b879d6d442
sha256
c0ca2aab61944507c392ce165d377adf98dab177d8fa24224ce0c34b989fff89
<?php
/**
 * @package     Joomla.Administrator
 * @subpackage  com_languages
 *
 * @copyright   Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

namespace Joomla\Component\Languages\Administrator\Controller;

use Joomla\CMS\MVC\Controller\AdminController;
use Joomla\CMS\Response\JsonResponse;

defined('_JEXEC') or die;

/**
 * Languages Strings JSON Controller
 *
 * @since  2.5
 */
class StringsController extends AdminController
{
	/**
	 * Method for refreshing the cache in the database with the known language strings
	 *
	 * @return  void
	 *
	 * @since		2.5
	 */
	public function refresh()
	{
		echo new JsonResponse($this->getModel('strings')->refresh());
	}

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

The same content is in 2 releases, Joomla 4.0.0-alpha5 to 4.0.0-alpha6. See them all, or every version of this file.