class config

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

Methods

config_section|null
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
config_section|null 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|null

The section object or null if none was found

at line 51
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 62
string get_data()

Returns the config data

Return Value

string

$data The config data that is generated