category Zend
package Zend_Config
subpackage Writer

 Methods

Get nest separator.

getNestSeparator() : string

Returns

string

processConfig(): defined by AbstractWriter.

processConfig(array $config) : string

Parameters

$config

array

Returns

string

Set nest separator.

setNestSeparator(string $separator) : \Zend\Config\Writer\self

Parameters

$separator

string

Returns

\Zend\Config\Writer\self

Set if rendering should occur without sections or not.

setRenderWithoutSectionsFlags(bool $withoutSections) : \Zend\Config\Writer\Ini

If set to true, the INI file is rendered without sections completely into the global namespace of the INI file.

Parameters

$withoutSections

bool

Returns

Return whether the writer should render without sections.

shouldRenderWithoutSections() : bool

Returns

bool

toFile(): defined by Writer interface.

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

see \Zend\Config\Writer\WriterInterface::toFile()
inherited_from \Zend\Config\Writer\AbstractWriter::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

Add a branch to an INI string recursively.

addBranch(array $config, array $parents) : string

Parameters

$config

array

$parents

array

Returns

string

Prepare a value for INI.

prepareValue(mixed $value) : string

Parameters

$value

mixed

Exceptions

\Zend\Config\Exception\RuntimeException

Returns

string

Root elements that are not assigned to any section needs to be on the top of config.

sortRootElements(array $config) : array

Parameters

$config

array

Returns

array

 Properties

 

Separator for nesting levels of configuration data identifiers.

$nestSeparator : string

 

If true the INI string is rendered in the global namespace without sections.

$renderWithoutSections : bool