_prepareValue example

$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];
                    }

                    $iniString .= '[' . $sectionName . "]\n"
                               . $this->_addBranch($data)
                               . "\n";
                }
            }
        }
$iniString .= $this->_addBranch($this->_config);
        } else if (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 Zend_Config)) {
                    $iniString .= $sectionName
                               .  ' = '
                               .  $this->_prepareValue($data)
                               .  "\n";
                } else {
                    if (isset($extends[$sectionName])) {
                        $sectionName .= ' : ' . $extends[$sectionName];
                    }

                    $iniString .= '[' . $sectionName . ']' . "\n"
                               .  $this->_addBranch($data)
                               .  "\n";
                }
            }
        }
Home | Imprint | This part of the site doesn't use cookies.