DbPatch_Core_Config::loadPhpConfig PHP Метод

loadPhpConfig() защищенный Метод

Load a PHP config file
protected loadPhpConfig ( string $filename, boolean $allowOverride )
$filename string Path to config file to load
$allowOverride boolean
    protected function loadPhpConfig($filename, $allowOverride)
    {
        $returnedConfig = (require_once $filename);
        if (isset($dbPatchConfig)) {
            return new Zend_Config($dbPatchConfig, $allowOverride);
        }
        if ($returnedConfig instanceof Zend_Config) {
            return $returnedConfig;
        }
        if (is_array($returnedConfig)) {
            return new Zend_Config($returnedConfig, $allowOverride);
        }
        throw new DbPatch_Exception('Could not determine database configuration');
    }