1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-09 10:16:36 +02:00

[feature/sphinx-fulltext-search] improve sphinx helper classes

add access modifiers and docblocks to properties and methods of
sphinx helper classes.

PHPBB3-10946
This commit is contained in:
Dhruv
2012-07-11 17:32:31 +05:30
parent b8103c5c31
commit 78e7f2a529
4 changed files with 50 additions and 11 deletions

View File

@@ -21,9 +21,9 @@ if (!defined('IN_PHPBB'))
*/
class phpbb_search_sphinx_config_variable
{
var $name;
var $value;
var $comment;
private $name;
private $value;
private $comment;
/**
* Constructs a new variable object
@@ -32,6 +32,8 @@ class phpbb_search_sphinx_config_variable
* @param string $value Value of the variable
* @param string $comment Optional comment after the variable in the
* config file
*
* @access public
*/
function __construct($name, $value, $comment)
{
@@ -44,6 +46,8 @@ class phpbb_search_sphinx_config_variable
* Getter for the variable's name
*
* @return string The variable object's name
*
* @access public
*/
function get_name()
{
@@ -54,6 +58,8 @@ class phpbb_search_sphinx_config_variable
* Allows changing the variable's value
*
* @param string $value New value for this variable
*
* @access public
*/
function set_value($value)
{
@@ -64,6 +70,8 @@ class phpbb_search_sphinx_config_variable
* Turns this object into a string readable by sphinx
*
* @return string Config data in textual form
*
* @access public
*/
function to_string()
{