diff options
| author | Oleg Pudeyev <oleg@bsdpower.com> | 2012-10-10 00:39:29 -0400 | 
|---|---|---|
| committer | Oleg Pudeyev <oleg@bsdpower.com> | 2012-10-10 00:39:29 -0400 | 
| commit | f1a692a5f45d993fe2578f13d365ca10543696f8 (patch) | |
| tree | 38292327be9aff428af110e991efb784b3dc0aed /phpBB/includes/search/fulltext_mysql.php | |
| parent | 59281f1b0ad95d1baaf08bc365e0a9d7a916aeba (diff) | |
| parent | 305abfde963e764d5e6be0c7b1c1b9496a2477b2 (diff) | |
| download | forums-f1a692a5f45d993fe2578f13d365ca10543696f8.tar forums-f1a692a5f45d993fe2578f13d365ca10543696f8.tar.gz forums-f1a692a5f45d993fe2578f13d365ca10543696f8.tar.bz2 forums-f1a692a5f45d993fe2578f13d365ca10543696f8.tar.xz forums-f1a692a5f45d993fe2578f13d365ca10543696f8.zip  | |
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
Diffstat (limited to 'phpBB/includes/search/fulltext_mysql.php')
| -rw-r--r-- | phpBB/includes/search/fulltext_mysql.php | 36 | 
1 files changed, 33 insertions, 3 deletions
diff --git a/phpBB/includes/search/fulltext_mysql.php b/phpBB/includes/search/fulltext_mysql.php index cf89ab1c24..7cd06dee19 100644 --- a/phpBB/includes/search/fulltext_mysql.php +++ b/phpBB/includes/search/fulltext_mysql.php @@ -27,9 +27,9 @@ class phpbb_search_fulltext_mysql extends phpbb_search_base  	protected $config;  	protected $db;  	protected $user; -	public $word_length = array(); -	public $search_query; -	public $common_words = array(); +	protected $word_length = array(); +	protected $search_query; +	protected $common_words = array();  	/**  	 * Constructor @@ -59,6 +59,36 @@ class phpbb_search_fulltext_mysql extends phpbb_search_base  	}  	/** +	 * 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; +	} + +	/** +	 * Returns the word_length array +	 * +	 * @return array min and max word length for searching +	 */ +	public function get_word_length() +	{ +		return $this->word_length; +	} + +	/**  	* Checks for correct MySQL version and stores min/max word length in the config  	*  	* @return string|bool Language key of the error/incompatiblity occured  | 
