mirror of
				https://github.com/phpbb/phpbb.git
				synced 2025-10-26 21:21:32 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			50 lines
		
	
	
		
			833 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			50 lines
		
	
	
		
			833 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?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
 | |
| {
 | |
| 	private $exact_string;
 | |
| 
 | |
| 	/**
 | |
| 	* Create a new comment
 | |
| 	*
 | |
| 	* @param	string	$exact_string	The content of the comment including newlines, leading whitespace, etc.
 | |
| 	*
 | |
| 	* @access	public
 | |
| 	*/
 | |
| 	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
 | |
| 	*
 | |
| 	* @access	public
 | |
| 	*/
 | |
| 	function to_string()
 | |
| 	{
 | |
| 		return $this->exact_string;
 | |
| 	}
 | |
| }
 |