Definition at line 33 of file Ini.php.
◆ _addBranch()
Add a branch to an INI string recursively
- Parameters
-
- Returns
- void
Definition at line 124 of file Ini.php.
129 $group = array_merge($parents, array($key));
134 $iniString .= implode($this->_nestSeparator,
$group)
_addBranch(Zend_Config $config, $parents=array())
◆ _prepareValue()
Prepare a value for INI
- Parameters
-
- Returns
- string
- See also
- Zend_Config_Exception
Definition at line 150 of file Ini.php.
155 return (
$value ?
'true' :
'false');
157 return '"' .
$value .
'"';
160 #require_once 'Zend/Config/Exception.php'; elseif(isset( $params[ 'redirect_parent']))
◆ _sortRootElements()
◆ render()
Render a Zend_Config into a INI config string.
- Since
- 1.10
- Returns
- string
Definition at line 83 of file Ini.php.
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"
_sortRootElements(Zend_Config $config)
_addBranch(Zend_Config $config, $parents=array())
◆ setNestSeparator()
setNestSeparator |
( |
|
$separator | ) |
|
◆ setRenderWithoutSections()
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
-
- Returns
- Zend_Config_Writer_Ini
Definition at line 71 of file Ini.php.
73 $this->_renderWithoutSections = (bool)$withoutSections;
◆ $_nestSeparator
◆ $_renderWithoutSections
$_renderWithoutSections = false |
|
protected |
The documentation for this class was generated from the following file:
- vendor/magento/zendframework1/library/Zend/Config/Writer/Ini.php