CoreFiles by mySites.guru
ro.php58 lines, 1,079 bytes, from Joomla_4.0.0-alpha8-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha7
md5
3c18ee5c8d9888f591074ad04c634a8c
sha1
d20435009e5bef14dc1d9f1ed85bff4527a308d0
sha256
922295a4b363854e0f40afb237bcb637f09d0fe94a83f716f6e99e491baadefa
<?php
/**
 * @package     Joomla.Administrator
 * @subpackage  com_finder
 *
 * @copyright   Copyright (C) 2005 - 2019 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

defined('_JEXEC') or die;

/**
 * Romanian language support class for the Finder indexer package.
 *
 * @since  4.0.0
 */
class FinderIndexerLanguagero extends FinderIndexerLanguage
{
	/**
	 * Language locale of the class
	 *
	 * @var    string
	 * @since  4.0.0
	 */
	public $language = 'ro';

	/**
	 * The romanian stemmer object.
	 *
	 * @var    \Wamania\Snowball\Romanian
	 * @since  4.0.0
	 */
	protected $stemmer = null;

	/**
	 * Method to construct the language object.
	 *
	 * @since   4.0.0
	 */
	public function __construct()
	{
		$this->stemmer = new \Wamania\Snowball\Romanian;
	}

	/**
	 * Method to stem a token.
	 *
	 * @param   string  $token  The token to stem.
	 *
	 * @return  string  The stemmed token.
	 *
	 * @since   4.0.0
	 */
	public function stem($token)
	{
		return $this->stemmer->stem($token);
	}
}

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