protected function _addBranch(Zend_Config $config, $parents = array())
    {
        $iniString = '';

        foreach ($config as $key => $value) {
            $group = array_merge($parents, array($key));

            if ($value instanceof Zend_Config) {
                $iniString .= $this->_addBranch($value, $group);
            } else {
                $iniString .= implode($this->_nestSeparator, $group)
                           .  ' = '
                           .  $this->_prepareValue($value)
                           .  "\n";
            }
        }

        return $iniString;
    }
protected function _addBranch(Zend_Config $config, $parents = array())
    {
        $iniString = '';

        foreach ($config as $key => $value) {
            $group = array_merge($parents, array($key));

            if ($value instanceof Zend_Config) {
                $iniString .= $this->_addBranch($value, $group);
            } else {
                $iniString .= implode($this->_nestSeparator, $group)
                           .  ' = '
                           .  $this->_prepareValue($value)
                           .  "\n";
            }
        }

        return $iniString;
    }
protected function _addBranch ( Zend_Config $ config , $ parents = array ( ) ) { $ iniString = '' ; foreach ( $ config as $ key => $ value ) { $ group = array_merge ( $ parents , array ( $ key ) ) ; if ( $ value instanceof Zend_Config ) { $ iniString .= $ this -> _addBranch ( $ value , $ group ) ; } else { $ iniString .= implode ( $ this -> _nestSeparator , $ group ) . ' = ' . $ this -> _prepareValue ( $ value ) . "\n" ; } } return $ iniString ; }
Add a branch to an INI string recursively

@param  Zend_Config $config
@return void
Add a branch to an INI string recursively