class config

An object representing the sphinx configuration Can read it from file and write it back out after modification

Methods

__construct(string $config_data)

Constructor which optionally loads data from a variable

get_section_by_name(string $name)

Get a section object by its name

add_section(string $name)

Appends a new empty section to the end of the config

string
get_data()

Returns the config data

Details

at line 31
__construct(string $config_data)

Constructor which optionally loads data from a variable

Parameters

string $config_data

Variable containing the sphinx configuration data

at line 47
config_section get_section_by_name(string $name)

Get a section object by its name

Parameters

string $name

The name of the section that shall be returned

Return Value

config_section

The section object or null if none was found

at line 67
config_section add_section(string $name)

Appends a new empty section to the end of the config

Parameters

string $name

The name for the new section

Return Value

config_section

The newly created section object

at line 274
string get_data()

Returns the config data

Return Value

string

$data The config data that is generated