mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-08 17:56:52 +02:00
[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
This commit is contained in:
45
phpBB/includes/search/sphinx/config_comment.php
Normal file
45
phpBB/includes/search/sphinx/config_comment.php
Normal file
@@ -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;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user