00001 <?php 00009 class Dsao_Constructor_Config implements Dsao_Constructor_Interface 00010 { 00019 public function getObject($fileConfig = null, $section = null) 00020 { 00021 // Standardkonfiguration laden 00022 $config = new Dsao_Config_Ini 00023 ($fileConfig.'.dist', $section, true); 00024 // Mit lokaler Konfiguration überschreiben 00025 $config->merge(new Dsao_Config_Ini 00026 ($fileConfig, $section)); 00027 00028 // Temporaeres Verzeichnis festlegen 00029 $config->tempDir = TEMP_DIR; 00030 00031 // Konfiguration vor Änderungen schützen 00032 $config->setReadOnly(); 00033 00034 return $config; 00035 } 00036 }
1.5.7.1