/** * Creates the configuration representation for all sections. * * @param string[] $entries The sections of the current configuration. * * @return IniConfiguration The appropriate configuration. * * @author Christian Achatz * @version * Version 0.1, 04.10.2010<br /> */ private function parseConfig($entries) { // prevent errors with foreach loop if ($entries === false) { return null; } $config = new IniConfiguration(); foreach ($entries as $section => $subEntries) { $config->setSection($section, $this->parseSection($subEntries)); } return $config; }