25 #require_once 'Zend/Config/Writer/FileAbstract.php'; 57 $this->_nestSeparator = $separator;
73 $this->_renderWithoutSections = (bool)$withoutSections;
86 $extends = $this->_config->getExtends();
87 $sectionName = $this->_config->getSectionName();
89 if($this->_renderWithoutSections ==
true) {
90 $iniString .= $this->
_addBranch($this->_config);
91 }
else if (is_string($sectionName)) {
92 $iniString .=
'[' . $sectionName .
']' .
"\n" 99 $iniString .= $sectionName
104 if (isset($extends[$sectionName])) {
105 $sectionName .=
' : ' . $extends[$sectionName];
108 $iniString .=
'[' . $sectionName .
']' .
"\n" 129 $group = array_merge($parents, array($key));
134 $iniString .= implode($this->_nestSeparator,
$group)
155 return (
$value ?
'true' :
'false');
157 return '"' .
$value .
'"';
160 #require_once 'Zend/Config/Exception.php'; 175 $configArray =
$config->toArray();
179 foreach ($configArray as $key =>
$value) {
182 unset($configArray[$key]);
187 foreach ($sections as $key =>
$value) {
188 $configArray[$key] =
$value;
elseif(isset( $params[ 'redirect_parent']))
setRenderWithoutSections($withoutSections=true)
setNestSeparator($separator)
_sortRootElements(Zend_Config $config)
_addBranch(Zend_Config $config, $parents=array())