aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorDhruv <dhruv.goel92@gmail.com>2012-08-10 16:26:57 +0530
committerDhruv <dhruv.goel92@gmail.com>2012-11-09 15:54:29 +0100
commit505a7133490450015c7d5e35fe7ca0d2da338d3c (patch)
treeb0488a110c453b1ccb833f5ac0c4c8f4dcaf02da /phpBB
parentdb9351d0f6f1baa2184cfef284317b62f5ba52a6 (diff)
downloadforums-505a7133490450015c7d5e35fe7ca0d2da338d3c.tar
forums-505a7133490450015c7d5e35fe7ca0d2da338d3c.tar.gz
forums-505a7133490450015c7d5e35fe7ca0d2da338d3c.tar.bz2
forums-505a7133490450015c7d5e35fe7ca0d2da338d3c.tar.xz
forums-505a7133490450015c7d5e35fe7ca0d2da338d3c.zip
[ticket/11050] add access specifiers to sphinx search properties
PHPBB3-11050
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/includes/search/fulltext_sphinx.php77
1 files changed, 75 insertions, 2 deletions
diff --git a/phpBB/includes/search/fulltext_sphinx.php b/phpBB/includes/search/fulltext_sphinx.php
index 0a230f0e98..5082e511dc 100644
--- a/phpBB/includes/search/fulltext_sphinx.php
+++ b/phpBB/includes/search/fulltext_sphinx.php
@@ -28,22 +28,95 @@ define('SPHINX_CONNECT_WAIT_TIME', 300);
*/
class phpbb_search_fulltext_sphinx
{
+ /**
+ * 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();
+
+ /**
+ * Holds unique sphinx id
+ * @var string
+ */
protected $id;
+
+ /**
+ * Stores the names of both main and delta sphinx indexes
+ * seperated by a semicolon
+ * @var string
+ */
protected $indexes;
+
+ /**
+ * Sphinx searchd client class object
+ * @var SphinxClient
+ */
protected $sphinx;
+
+ /**
+ * @var string Relative path to board root
+ */
protected $phpbb_root_path;
+
+ /**
+ * @var string PHP Extension
+ */
protected $php_ext;
+
+ /**
+ * @var phpbb_auth Auth class object
+ */
protected $auth;
+
+ /**
+ * @var phpbb_config Config class object
+ */
protected $config;
+
+ /**
+ * @var dbal DBAL class object
+ */
protected $db;
+
+ /**
+ * @var phpbb_db_tools Database Tools class object
+ */
protected $db_tools;
+
+ /**
+ * Stores the database type if supported by sphinx
+ * @var string
+ */
protected $dbtype;
+
+ /**
+ * @var user User class object
+ */
protected $user;
+
+ /**
+ * Stores the generated content of the sphinx config file
+ */
protected $config_file_data = '';
- protected $search_query;
- protected $common_words = 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();
/**
* Constructor