Zend Framework  1.12
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Zend_Config_Writer_Ini Class Reference

Public Member Functions

 setNestSeparator ($separator)
 Set the nest separator.
 
 setRenderWithoutSections ($withoutSections=true)
 Set if rendering should occour without sections or not.
 
 render ()
 Render a Zend_Config into a INI config string.
 
- Public Member Functions inherited from Zend_Config_Writer_FileAbstract
 setFilename ($filename)
 Set the target filename.
 
 setExclusiveLock ($exclusiveLock)
 Set wether to exclusively lock the file or not.
 
 write ($filename=null, Zend_Config $config=null, $exclusiveLock=null)
 Write configuration to file.
 
 render ()
 Render a Zend_Config into a config file string.
 
- Public Member Functions inherited from Zend_Config_Writer
 __construct (array $options=null)
 Create a new adapter.
 
 setConfig (Zend_Config $config)
 Set options via a Zend_Config instance.
 
 setOptions (array $options)
 Set options via an array.
 
 write ()
 Write a Zend_Config object to it's target.
 

Protected Member Functions

 _addBranch (Zend_Config $config, $parents=array())
 Add a branch to an INI string recursively.
 
 _prepareValue ($value)
 Prepare a value for INI.
 
 _sortRootElements (Zend_Config $config)
 Root elements that are not assigned to any section needs to be on the top of config.
 

Protected Attributes

 $_nestSeparator = '.'
 
 $_renderWithoutSections = false
 
- Protected Attributes inherited from Zend_Config_Writer_FileAbstract
 $_filename = null
 
 $_exclusiveLock = false
 
- Protected Attributes inherited from Zend_Config_Writer
 $_skipOptions
 
 $_config = null
 

Member Function Documentation

_addBranch ( Zend_Config  $config,
  $parents = array() 
)
protected

Add a branch to an INI string recursively.

Parameters
Zend_Config$config
Returns
void
_prepareValue (   $value)
protected

Prepare a value for INI.

Parameters
mixed$value
Returns
string
See Also
Zend_Config_Exception
_sortRootElements ( Zend_Config  $config)
protected

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

See Also
http://framework.zend.com/issues/browse/ZF-6289
Parameters
Zend_Config
Returns
Zend_Config
render ( )

Render a Zend_Config into a INI config string.

Since
1.10
Returns
string
setNestSeparator (   $separator)

Set the nest separator.

Parameters
string$filename
Returns
Zend_Config_Writer_Ini
setRenderWithoutSections (   $withoutSections = true)

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.

Parameters
bool$withoutSections
Returns
Zend_Config_Writer_Ini

Member Data Documentation

$_nestSeparator = '.'
protected
$_renderWithoutSections = false
protected