aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/search/fulltext_postgres.php
diff options
context:
space:
mode:
authorNathan Guse <nathaniel.guse@gmail.com>2012-10-12 17:09:12 -0500
committerNathan Guse <nathaniel.guse@gmail.com>2012-10-12 17:09:12 -0500
commit94a3dc5ff7292c8271dfcff9408aa89d401b72ac (patch)
tree6c7bd95bc177a40ee8f7e81fc3f2333c53363a8d /phpBB/includes/search/fulltext_postgres.php
parent3d79ce28031b4c85ee34bd4d43f0c64b18b1a80b (diff)
parentf1a692a5f45d993fe2578f13d365ca10543696f8 (diff)
downloadforums-94a3dc5ff7292c8271dfcff9408aa89d401b72ac.tar
forums-94a3dc5ff7292c8271dfcff9408aa89d401b72ac.tar.gz
forums-94a3dc5ff7292c8271dfcff9408aa89d401b72ac.tar.bz2
forums-94a3dc5ff7292c8271dfcff9408aa89d401b72ac.tar.xz
forums-94a3dc5ff7292c8271dfcff9408aa89d401b72ac.zip
Merge branch 'develop' of git://github.com/phpbb/phpbb3 into ticket/11103
Diffstat (limited to 'phpBB/includes/search/fulltext_postgres.php')
-rw-r--r--phpBB/includes/search/fulltext_postgres.php36
1 files changed, 33 insertions, 3 deletions
diff --git a/phpBB/includes/search/fulltext_postgres.php b/phpBB/includes/search/fulltext_postgres.php
index 50ed785093..38989a9d9a 100644
--- a/phpBB/includes/search/fulltext_postgres.php
+++ b/phpBB/includes/search/fulltext_postgres.php
@@ -31,9 +31,9 @@ class phpbb_search_fulltext_postgres extends phpbb_search_base
protected $config;
protected $db;
protected $user;
- public $search_query;
- public $common_words = array();
- public $word_length = array();
+ protected $search_query;
+ protected $common_words = array();
+ protected $word_length = array();
/**
* Constructor
@@ -73,6 +73,36 @@ class phpbb_search_fulltext_postgres 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;
+ }
+
+ /**
* Returns if phrase search is supported or not
*
* @return bool