class IniFormat implements FormatInterface (View source)

INI format handler for Structure.

Methods

static string
structToString(object $struct, array $options = array())

Converts an object into an INI formatted string - Unfortunately, there is no way to have ini values nested further than two levels deep. Therefore we will only go through the first two levels of the object.

static object
stringToStruct(string $data, array $options = array())

Parse an INI formatted string and convert it into an object.

Details

at line line 38
static string structToString(object $struct, array $options = array())

Converts an object into an INI formatted string - Unfortunately, there is no way to have ini values nested further than two levels deep. Therefore we will only go through the first two levels of the object.

Parameters

object $struct Data Source Object.
array $options An array of options for the formatter.

Return Value

string Formatted string.

at line line 87
static object stringToStruct(string $data, array $options = array())

Parse an INI formatted string and convert it into an object.

Parameters

string $data Formatted string
array $options An array of options for the formatter.

Return Value

object Data Object