class config_variable

\phpbb\search\sphinx\config_variable Represents a single variable inside the sphinx configuration

Methods

__construct(string $name, string $value, string $comment)

Constructs a new variable object

string
get_name()

Getter for the variable's name

set_value(string $value)

Allows changing the variable's value

string
to_string()

Turns this object into a string readable by sphinx

Details

at line 36
__construct(string $name, string $value, string $comment)

Constructs a new variable object

Parameters

string $name

Name of the variable

string $value

Value of the variable

string $comment

Optional comment after the variable in the config file

at line 50
string get_name()

Getter for the variable's name

Return Value

string

The variable object's name

at line 62
set_value(string $value)

Allows changing the variable's value

Parameters

string $value

New value for this variable

at line 74
string to_string()

Turns this object into a string readable by sphinx

Return Value

string

Config data in textual form