mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-11 03:04:09 +02:00
Merge PR #956 branch 'dhruvgoel92/ticket/11051' into develop
* dhruvgoel92/ticket/11051: [ticket/11051] fix spaces [ticket/11051] add common_words variable [ticket/11051] remove unnecessary comment [ticket/11051] add get_word_len() in sphinx search [ticket/11051] use get_word_length in search backend [ticket/11051] use get_common_words in search backend [ticket/11051] function instead of accessing property in search [ticket/11051] add public functions for public properties
This commit is contained in:
@@ -42,8 +42,8 @@ class phpbb_search_fulltext_sphinx
|
||||
protected $dbtype;
|
||||
protected $user;
|
||||
protected $config_file_data = '';
|
||||
public $search_query;
|
||||
public $common_words = array();
|
||||
protected $search_query;
|
||||
protected $common_words = array();
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
@@ -87,7 +87,7 @@ class phpbb_search_fulltext_sphinx
|
||||
|
||||
$error = false;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Returns the name of this search backend to be displayed to administrators
|
||||
*
|
||||
@@ -98,6 +98,36 @@ class phpbb_search_fulltext_sphinx
|
||||
return 'Sphinx Fulltext';
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the search_query
|
||||
*
|
||||
* @return string search query
|
||||
*/
|
||||
public function get_search_query()
|
||||
{
|
||||
return $this->search_query;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns false as there is no word_len array
|
||||
*
|
||||
* @return false
|
||||
*/
|
||||
public function get_word_length()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the common_words array
|
||||
*
|
||||
* @return array common words that are ignored by search backend
|
||||
*/
|
||||
public function get_common_words()
|
||||
{
|
||||
return $this->common_words;
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks permissions and paths, if everything is correct it generates the config file
|
||||
*
|
||||
|
Reference in New Issue
Block a user