Methods

processConfig(): defined by AbstractWriter.

processConfig(array $config) : string

Parameters

$config

array

Returns

string

Sets whether or not to use the PHP 5.4+ "[]" array syntax.

setUseBracketArraySyntax(bool $value) : \Zend\Config\Writer\self

Parameters

$value

bool

Returns

\Zend\Config\Writer\self

toFile(): defined by Writer interface.

toFile(string $filename, mixed $config, bool $exclusiveLock) : void

see \Zend\Config\Writer\WriterInterface::toFile()

Parameters

$filename

string

$config

mixed

$exclusiveLock

bool

Exceptions

\Zend\Config\Exception\InvalidArgumentException
\Zend\Config\Exception\RuntimeException

toString(): defined by Writer interface.

toString(mixed $config) : string
Inherited

see \Zend\Config\Writer\WriterInterface::toString()
inherited_from \Zend\Config\Writer\AbstractWriter::toString()

Parameters

$config

mixed

Exceptions

\Zend\Config\Exception\InvalidArgumentException

Returns

string

Recursively processes a PHP config array structure into a readable format.

processIndented(array $config, array $arraySyntax, int $indentLevel) : string

Parameters

$config

array

$arraySyntax

array

$indentLevel

int

Returns

string

 Properties

 

$useBracketArraySyntax

$useBracketArraySyntax : bool

 Constants

 

INDENT_STRING

INDENT_STRING : string