Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[4.4] Deprecating com_search methods in Joomla\CMS\Language\Language #40727

Merged
merged 1 commit into from
Jun 7, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
32 changes: 32 additions & 0 deletions libraries/src/Language/Language.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,8 @@ class Language
*
* @var callable
* @since 1.7.0
*
* @deprecated 4.4 will be removed in 6.0 without replacement
*/
protected $ignoredSearchWordsCallback = null;

Expand All @@ -156,6 +158,8 @@ class Language
*
* @var callable
* @since 1.7.0
*
* @deprecated 4.4 will be removed in 6.0 without replacement
*/
protected $lowerLimitSearchWordCallback = null;

Expand All @@ -164,6 +168,8 @@ class Language
*
* @var callable
* @since 1.7.0
*
* @deprecated 4.4 will be removed in 6.0 without replacement
*/
protected $upperLimitSearchWordCallback = null;

Expand All @@ -172,6 +178,8 @@ class Language
*
* @var callable
* @since 1.7.0
*
* @deprecated 4.4 will be removed in 6.0 without replacement
*/
protected $searchDisplayedCharactersNumberCallback = null;

Expand Down Expand Up @@ -484,6 +492,8 @@ public function setPluralSuffixesCallback(callable $function)
* @return array The array of ignored search words.
*
* @since 1.7.0
*
* @deprecated 4.4 will be removed in 6.0 without replacement
*/
public function getIgnoredSearchWords()
{
Expand All @@ -500,6 +510,8 @@ public function getIgnoredSearchWords()
* @return callable Function name or the actual function.
*
* @since 1.7.0
*
* @deprecated 4.4 will be removed in 6.0 without replacement
*/
public function getIgnoredSearchWordsCallback()
{
Expand All @@ -514,6 +526,8 @@ public function getIgnoredSearchWordsCallback()
* @return callable The previous function.
*
* @since 1.7.0
*
* @deprecated 4.4 will be removed in 6.0 without replacement
*/
public function setIgnoredSearchWordsCallback(callable $function)
{
Expand All @@ -529,6 +543,8 @@ public function setIgnoredSearchWordsCallback(callable $function)
* @return integer The lower limit integer for length of search words (3 if no value was set for a specific language).
*
* @since 1.7.0
*
* @deprecated 4.4 will be removed in 6.0 without replacement
*/
public function getLowerLimitSearchWord()
{
Expand All @@ -545,6 +561,8 @@ public function getLowerLimitSearchWord()
* @return callable Function name or the actual function.
*
* @since 1.7.0
*
* @deprecated 4.4 will be removed in 6.0 without replacement
*/
public function getLowerLimitSearchWordCallback()
{
Expand All @@ -559,6 +577,8 @@ public function getLowerLimitSearchWordCallback()
* @return callable The previous function.
*
* @since 1.7.0
*
* @deprecated 4.4 will be removed in 6.0 without replacement
*/
public function setLowerLimitSearchWordCallback(callable $function)
{
Expand All @@ -574,6 +594,8 @@ public function setLowerLimitSearchWordCallback(callable $function)
* @return integer The upper limit integer for length of search words (200 if no value was set or if default value is < 200).
*
* @since 1.7.0
*
* @deprecated 4.4 will be removed in 6.0 without replacement
*/
public function getUpperLimitSearchWord()
{
Expand All @@ -590,6 +612,8 @@ public function getUpperLimitSearchWord()
* @return callable Function name or the actual function.
*
* @since 1.7.0
*
* @deprecated 4.4 will be removed in 6.0 without replacement
*/
public function getUpperLimitSearchWordCallback()
{
Expand All @@ -604,6 +628,8 @@ public function getUpperLimitSearchWordCallback()
* @return callable The previous function.
*
* @since 1.7.0
*
* @deprecated 4.4 will be removed in 6.0 without replacement
*/
public function setUpperLimitSearchWordCallback(callable $function)
{
Expand All @@ -619,6 +645,8 @@ public function setUpperLimitSearchWordCallback(callable $function)
* @return integer The number of characters displayed (200 if no value was set for a specific language).
*
* @since 1.7.0
*
* @deprecated 4.4 will be removed in 6.0 without replacement
*/
public function getSearchDisplayedCharactersNumber()
{
Expand All @@ -635,6 +663,8 @@ public function getSearchDisplayedCharactersNumber()
* @return callable Function name or the actual function.
*
* @since 1.7.0
*
* @deprecated 4.4 will be removed in 6.0 without replacement
*/
public function getSearchDisplayedCharactersNumberCallback()
{
Expand All @@ -649,6 +679,8 @@ public function getSearchDisplayedCharactersNumberCallback()
* @return callable The previous function.
*
* @since 1.7.0
*
* @deprecated 4.4 will be removed in 6.0 without replacement
*/
public function setSearchDisplayedCharactersNumberCallback(callable $function)
{
Expand Down