INI config reader.

package Default

 Methods

fromFile(): defined by Reader interface.

fromFile(string $filename) : array
see
inherited_from \Zend\Config\Reader\ReaderInterface::fromFile()

Parameters

$filename

string

Exceptions

\Zend\Config\Exception\RuntimeException

Returns

array

fromString(): defined by Reader interface.

fromString(string $string) : array | boolean
inherited_from \Zend\Config\Reader\ReaderInterface::fromString()

Parameters

$string

string

Exceptions

\Zend\Config\Exception\RuntimeException

Returns

arrayboolean

Get nest separator.

getNestSeparator() : string

Returns

string

Set nest separator.

setNestSeparator(string $separator) : \Zend\Config\Reader\Ini
fluent This method is part of a fluent interface and will return the same instance

Parameters

$separator

string

Returns

\Zend\Config\Reader\Ini

Process data from the parsed ini file.

process(array $data) : array

Parameters

$data

array

Returns

array

Process a key.

processKey(string $key, string $value, array $config) : array

Parameters

$key

string

$value

string

$config

array

Exceptions

\Zend\Config\Exception\RuntimeException

Returns

array

Process a section.

processSection(array $section) : array

Parameters

$section

array

Returns

array

Process a nested section

buildNestedSection(array $sections, mixed $value) : array

Parameters

$sections

array

$value

mixed

Returns

array

 Properties

 

Directory of the file to process.

$directory : string

Default

 

Separator for nesting levels of configuration data identifiers.

$nestSeparator : string

Default

'.'