Cts_ConfigFile

Summary
Cts_ConfigFile
AuthorJaybill McCarthy
Licensehttp://communit.as/docs/license
Static Methods
makeSectionPrepares a string formatted for use in a config file.

Author

Jaybill McCarthy

Static Methods

makeSection

static function makeSection($section_name,
$title,
$comment,
$keyvals)

Prepares a string formatted for use in a config file.  Does not write to any files, just returns a formatted string.

Arguments

section_nameThe name of the section to write to the config file.
titleThe title to write to the config file.
commentA comment to write to the config file.
keyvalsAn array of key-value pairs to write to the config file as configuration settings.

Returns

A formatted string that can be written to a config file.

static function makeSection($section_name,
$title,
$comment,
$keyvals)
Prepares a string formatted for use in a config file.
Close