$iniString = '';
$extends =
$this->_config->
getExtends();
$sectionName =
$this->_config->
getSectionName();
if ($this->_renderWithoutSections == true
) { $iniString .=
$this->
_addBranch($this->_config
);
} elseif (\
is_string($sectionName)) { $iniString .= '[' .
$sectionName . "]\n"
.
$this->
_addBranch($this->_config
) . "\n";
} else { $config =
$this->
_sortRootElements($this->_config
);
foreach ($config as $sectionName =>
$data) { if (!
($data instanceof Enlight_Config_BaseConfig
)) { $iniString .=
$sectionName . ' = '
.
$this->
_prepareValue($data) . "\n";
} else { if (isset($extends[$sectionName])) { $sectionName .= ' : ' .
$extends[$sectionName];
}