Config/Writer/Ini.php
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.
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Config
- Version
- $Id$
\Zend_Config_Writer_Ini
Package: Zend_Config
Returns
Abstract File Writer
- Parent(s)
- \Zend_Config_Writer_FileAbstract < \Zend_Config_Writer
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Properties
string $_nestSeparator = '.'
String that separates nesting levels of configuration data identifiers
Default value
'.'
Details- Type
- string
Methods
_addBranch(\Zend_Config $config, $parents = array()) : void
Add a branch to an INI string recursively
Parameters
Name | Type | Description |
---|---|---|
$config | \Zend_Config | |
$parents |
_prepareValue(mixed $value) : string
Prepare a value for INI
Parameters
Returns
Name | Type | Description |
---|---|---|
$value | mixed |
Type | Description |
---|---|
string |
_sortRootElements( $config) : \Zend_Config
Root elements that are not assigned to any section needs to be on the top of config.
render() : string
Render a Zend_Config into a INI config string.
Returns
Details
Type | Description |
---|---|
string |
- Since
- 1.10
setNestSeparator( $separator) : \Zend_Config_Writer_Ini
Set the nest separator
Parameters
Returns
Name | Type | Description |
---|---|---|
$separator |
Type | Description |
---|---|
\Zend_Config_Writer_Ini |
setRenderWithoutSections(bool $withoutSections = true) : \Zend_Config_Writer_Ini
Set if rendering should occour without sections or not.
If set to true, the INI file is rendered without sections completely
into the global namespace of the INI file.
ParametersName | Type | Description |
---|---|---|
$withoutSections | bool |
Type | Description |
---|---|
\Zend_Config_Writer_Ini |