Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
Abstract File Writer

__construct(
null|array $options
=
null
)
:
void
Create a new adapter
Inherited from: \Zend_Config_Writer::__construct()$options can only be passed as array or be omitted
Name | Type | Description |
---|---|---|
$options | null|array |

_addBranch(
\Zend_Config $config, \SimpleXMLElement $xml, \SimpleXMLElement $parent
)
:
void
Add a branch to an XML object recursively
Name | Type | Description |
---|---|---|
$config | \Zend_Config | |
$xml | \SimpleXMLElement | |
$parent | \SimpleXMLElement |

render(
)
:
string
Render a Zend_Config into a XML config string.
Type | Description |
---|---|
string |

setConfig(
\Zend_Config $config
)
:
\Zend_Config_Writer
Set options via a Zend_Config instance
Inherited from: \Zend_Config_Writer::setConfig()
setExclusiveLock(
boolean $exclusiveLock
)
:
\Zend_Config_Writer_Array
Set wether to exclusively lock the file or not
Inherited from: \Zend_Config_Writer_FileAbstract::setExclusiveLock()Name | Type | Description |
---|---|---|
$exclusiveLock | boolean |
Type | Description |
---|---|
\Zend_Config_Writer_Array |

setFilename(
string $filename
)
:
\Zend_Config_Writer_Array
Set the target filename
Inherited from: \Zend_Config_Writer_FileAbstract::setFilename()Name | Type | Description |
---|---|---|
$filename | string |
Type | Description |
---|---|
\Zend_Config_Writer_Array |

setOptions(
array $options
)
:
\Zend_Config_Writer
Set options via an array
Inherited from: \Zend_Config_Writer::setOptions()
write(
string $filename
=
null, \Zend_Config $config
=
null, bool $exclusiveLock
=
null
)
:
void
Write configuration to file.
Inherited from: \Zend_Config_Writer_FileAbstract::write()Name | Type | Description |
---|---|---|
$filename | string | |
$config | \Zend_Config | |
$exclusiveLock | bool |