aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/search/sphinx/config_comment.php
diff options
context:
space:
mode:
authorDhruv Goel <dhruv.goel92@gmail.com>2012-07-01 01:23:57 +0530
committerDhruv <dhruv.goel92@gmail.com>2012-07-12 17:32:00 +0530
commit97fda78e7d85444f21ba2b10b3d58c4639b85936 (patch)
treeaf9af0e38dc0872ee53cfc37f700dea36d01e2b0 /phpBB/includes/search/sphinx/config_comment.php
parent10b706674e0fc100ff4e21d5fe100a9b532bb4bf (diff)
downloadforums-97fda78e7d85444f21ba2b10b3d58c4639b85936.tar
forums-97fda78e7d85444f21ba2b10b3d58c4639b85936.tar.gz
forums-97fda78e7d85444f21ba2b10b3d58c4639b85936.tar.bz2
forums-97fda78e7d85444f21ba2b10b3d58c4639b85936.tar.xz
forums-97fda78e7d85444f21ba2b10b3d58c4639b85936.zip
[feature/sphinx-fulltext-search] Make different files for different classes
Break the classes in functions-sphinx.php into different files with proper class names according to phpbb class auto loader conventions. PHPBB3-10946 Conflicts: phpBB/includes/search/sphinx/config.php
Diffstat (limited to 'phpBB/includes/search/sphinx/config_comment.php')
-rw-r--r--phpBB/includes/search/sphinx/config_comment.php45
1 files changed, 45 insertions, 0 deletions
diff --git a/phpBB/includes/search/sphinx/config_comment.php b/phpBB/includes/search/sphinx/config_comment.php
new file mode 100644
index 0000000000..63d3488aef
--- /dev/null
+++ b/phpBB/includes/search/sphinx/config_comment.php
@@ -0,0 +1,45 @@
+<?php
+/**
+*
+* @package search
+* @copyright (c) 2005 phpBB Group
+* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
+*
+*/
+
+/**
+* @ignore
+*/
+if (!defined('IN_PHPBB'))
+{
+ exit;
+}
+
+/**
+* phpbb_search_sphinx_config_comment
+* Represents a comment inside the sphinx configuration
+*/
+class phpbb_search_sphinx_config_comment
+{
+ var $exact_string;
+
+ /**
+ * Create a new comment
+ *
+ * @param string $exact_string The content of the comment including newlines, leading whitespace, etc.
+ */
+ function __construct($exact_string)
+ {
+ $this->exact_string = $exact_string;
+ }
+
+ /**
+ * Simply returns the comment as it was created
+ *
+ * @return string The exact string that was specified in the constructor
+ */
+ function to_string()
+ {
+ return $this->exact_string;
+ }
+}