protected function _render(array $data = array(), $parent = array())
{
$result = array();
foreach ($data as $dataKey => $dataValue) {
if (is_array($dataValue)) {
if ($this->_isMulti($dataValue)) {
$sections = array_merge((array) $parent, (array) $dataKey);
$result[] = '';
$result[] = '[' . implode('.', $sections) . ']';
$result[] = $this->_render($dataValue, $sections);
} else {
foreach ($dataValue as $key => $value) {
$result[] = $dataKey . '[' . $key . '] = "' . str_replace('"', '\\"', $value) . '"';
}
}
} else {
$result[] = $dataKey . ' = "' . str_replace('"', '\\"', $dataValue) . '"';
}
}
return implode(Data::LE, $result);
}