2012-07-01 01:23:57 +05:30
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
*
|
2014-05-27 20:18:06 +02:00
|
|
|
* This file is part of the phpBB Forum Software package.
|
|
|
|
*
|
|
|
|
* @copyright (c) phpBB Limited <https://www.phpbb.com>
|
|
|
|
* @license GNU General Public License, version 2 (GPL-2.0)
|
|
|
|
*
|
|
|
|
* For full copyright and license information, please see
|
|
|
|
* the docs/CREDITS.txt file.
|
2012-07-01 01:23:57 +05:30
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2013-09-10 14:01:09 +02:00
|
|
|
namespace phpbb\search\sphinx;
|
|
|
|
|
2012-07-01 01:23:57 +05:30
|
|
|
/**
|
2013-09-10 14:01:09 +02:00
|
|
|
* \phpbb\search\sphinx\config_comment
|
2012-07-01 01:23:57 +05:30
|
|
|
* Represents a comment inside the sphinx configuration
|
|
|
|
*/
|
2013-09-10 14:01:09 +02:00
|
|
|
class config_comment
|
2012-07-01 01:23:57 +05:30
|
|
|
{
|
2012-07-11 17:32:31 +05:30
|
|
|
private $exact_string;
|
2012-07-01 01:23:57 +05:30
|
|
|
|
|
|
|
/**
|
2013-09-19 15:27:03 +02:00
|
|
|
* Create a new comment
|
2012-07-01 01:23:57 +05:30
|
|
|
*
|
|
|
|
* @param string $exact_string The content of the comment including newlines, leading whitespace, etc.
|
2012-07-11 17:32:31 +05:30
|
|
|
*
|
|
|
|
* @access public
|
2012-07-01 01:23:57 +05:30
|
|
|
*/
|
|
|
|
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
|
2012-07-11 17:32:31 +05:30
|
|
|
*
|
|
|
|
* @access public
|
2012-07-01 01:23:57 +05:30
|
|
|
*/
|
|
|
|
function to_string()
|
|
|
|
{
|
|
|
|
return $this->exact_string;
|
|
|
|
}
|
|
|
|
}
|