Skip to content

Commit

Permalink
Deprecating com_search methods in Joomla\CMS\Language\Language (#40727)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hackwar committed Jun 7, 2023
1 parent dec983f commit ceabdd6
Showing 1 changed file with 32 additions and 0 deletions.
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

0 comments on commit ceabdd6

Please sign in to comment.