CoreFiles by mySites.guru
pt.php58 lines, 1,087 bytes, from Joomla_4.0.0-alpha7-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha6
md5
3bec5ec669b2a0e6959d1840da6a7c6f
sha1
1de351dd75469689cce31ab7b7769113f127ff8c
sha256
b6d591f2da5b193f3a429291bcafe368660fa05d9d04593788baf3d0af7b58bd
<?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;

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

	/**
	 * The portuguese stemmer object.
	 *
	 * @var    \Wamania\Snowball\Portuguese
	 * @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\Portuguese;
	}

	/**
	 * 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.