mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-26 01:43:45 +02:00
[ticket/11051] add public functions for public properties
public retrieval functions for all public properties and change the properties to protected in all search backends. PHPBB3-11051
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,26 @@ 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 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