class ConfigGenerator (View source)

Config file generation class

Methods

static string
getConfigFile(ConfigFile $cf)

Creates config file

static string|null
getServerPart(ConfigFile $cf, string $eol, array $servers)

Generate server part of config file

Details

static string getConfigFile(ConfigFile $cf)

Creates config file

Parameters

ConfigFile $cf

Config file instance

Return Value

string

static protected string|null getServerPart(ConfigFile $cf, string $eol, array $servers)

Generate server part of config file

Parameters

ConfigFile $cf

Config file

string $eol

Carriage return char

array $servers

Servers list

Return Value

string|null