diff options
author | Dhruv <dhruv.goel92@gmail.com> | 2012-08-10 16:00:51 +0530 |
---|---|---|
committer | Dhruv <dhruv.goel92@gmail.com> | 2012-11-09 15:54:27 +0100 |
commit | 26a9ccab59ca1e1463778b169911a024acbd4736 (patch) | |
tree | 208cd37907851e56d312aa12c03bc8c5d28795b0 /phpBB/includes/search | |
parent | 0282fe7024f4cb001d635ebebd98dfdf9af747e8 (diff) | |
download | forums-26a9ccab59ca1e1463778b169911a024acbd4736.tar forums-26a9ccab59ca1e1463778b169911a024acbd4736.tar.gz forums-26a9ccab59ca1e1463778b169911a024acbd4736.tar.bz2 forums-26a9ccab59ca1e1463778b169911a024acbd4736.tar.xz forums-26a9ccab59ca1e1463778b169911a024acbd4736.zip |
[ticket/11050] add access specifiers to pgsql search properties
PHPBB3-11050
Diffstat (limited to 'phpBB/includes/search')
-rw-r--r-- | phpBB/includes/search/fulltext_postgres.php | 64 |
1 files changed, 61 insertions, 3 deletions
diff --git a/phpBB/includes/search/fulltext_postgres.php b/phpBB/includes/search/fulltext_postgres.php index 38989a9d9a..ab4864bacc 100644 --- a/phpBB/includes/search/fulltext_postgres.php +++ b/phpBB/includes/search/fulltext_postgres.php @@ -22,18 +22,76 @@ if (!defined('IN_PHPBB')) */ class phpbb_search_fulltext_postgres extends phpbb_search_base { + /** + * Associative array holding index stats + * @var array + */ protected $stats = array(); + + /** + * Holds the words entered by user splitted in array + * @var array + */ protected $split_words = array(); + + /** + * True if postgresql version supports tsearch + * @var boolean + */ protected $tsearch_usable = false; + + /** + * Stores the PostgreSQL version + * @var string + */ protected $version; + + /** + * Stores the tsearch query + * @var string + */ protected $tsearch_query; + + /** + * True if phrase search is supported. + * postgreSQL fulltext currently doesn't support it + * @var boolean + */ protected $phrase_search = false; + + /** + * @var phpbb_config Config class object + */ protected $config; + + /** + * @var dbal DBAL class object + */ protected $db; + + /** + * @var user User class object + */ protected $user; - protected $search_query; - protected $common_words = array(); - protected $word_length = array(); + + /** + * Contains tidied search query + * @var string + */ + public $search_query; + + /** + * Contains common words + * common words are words with length less/more than min/max length + * @var array + */ + public $common_words = array(); + + /** + * Associative array stores the min and max length + * @var array + */ + public $word_length = array(); /** * Constructor |