phpBB API Documentation
Class

phpbb\search\sphinx\config

class config

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

Methods

__construct($config_data)

Constructor which optionally loads data from a variable

get_section_by_name($name)

Get a section object by its name

add_section($name)

Appends a new empty section to the end of the config

read($config_data)

Reads the config file data

get_data()

Returns the config data

Details

at line 31
public __construct($config_data)

Constructor which optionally loads data from a variable

Parameters

$config_data

at line 47
public get_section_by_name($name)

Get a section object by its name

Parameters

$name

at line 67
public add_section($name)

Appends a new empty section to the end of the config

Parameters

$name

at line 80
public read($config_data)

Reads the config file data

Parameters

$config_data

at line 274
public get_data()

Returns the config data