CoreFiles by mySites.guru
StringsController.php50 lines, 1,110 bytes, from Joomla_4.4.14-Stable-Full_Package.zip
Raw History Compare with 4.4.13
md5
c64ae9e062cf80cb19b492bbcdfc5edb
sha1
298b0dff6bfcf5908eaa5191dbc7bd2886f529cd
sha256
2afb2fa50ad1700a2a7775b6caf28b681384cb437e44d6335e58d41abf614b49
<?php

/**
 * @package     Joomla.Administrator
 * @subpackage  com_languages
 *
 * @copyright   (C) 2011 Open Source Matters, Inc. <https://www.joomla.org>
 * @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;

// phpcs:disable PSR1.Files.SideEffects
\defined('_JEXEC') or die;
// phpcs:enable PSR1.Files.SideEffects

/**
 * 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 225 releases, Joomla 4.2.1 to 6.2.1-rc1. See them all, or every version of this file.