public function read($sConfigFile)
    {
        $sExt = pathinfo($sConfigFile, PATHINFO_EXTENSION);
        switch($sExt)
        {
        case 'php':
            $aConfigOptions = Php::read($sConfigFile);
            break;
        case 'yaml':
        case 'yml':
            $aConfigOptions = Yaml::read($sConfigFile);
            break;
        case 'json':
            $aConfigOptions = Json::read($sConfigFile);
            break;
        default:
            $sErrorMsg = jaxon_trans('config.errors.file.extension', array('path' => $sConfigFile));
            throw new \Jaxon\Config\Exception\File($sErrorMsg);
        }
        return $aConfigOptions;
    }
public function read($sConfigFile)
    {
        $sExt = pathinfo($sConfigFile, PATHINFO_EXTENSION);
        switch($sExt)
        {
        case 'php':
            $aConfigOptions = Php::read($sConfigFile);
            break;
        case 'yaml':
        case 'yml':
            $aConfigOptions = Yaml::read($sConfigFile);
            break;
        case 'json':
            $aConfigOptions = Json::read($sConfigFile);
            break;
        default:
            $sErrorMsg = jaxon_trans('config.errors.file.extension', array('path' => $sConfigFile));
            throw new \Jaxon\Config\Exception\File($sErrorMsg);
        }
        return $aConfigOptions;
    }
public function read ( $ sConfigFile ) { $ sExt = pathinfo ( $ sConfigFile , PATHINFO_EXTENSION ) ; switch ( $ sExt ) { case 'php' : $ aConfigOptions = Php :: read ( $ sConfigFile ) ; break ; case 'yaml' : case 'yml' : $ aConfigOptions = Yaml :: read ( $ sConfigFile ) ; break ; case 'json' : $ aConfigOptions = Json :: read ( $ sConfigFile ) ; break ; default : $ sErrorMsg = jaxon_trans ( 'config.errors.file.extension' , array ( 'path' => $ sConfigFile ) ) ; throw new \ Jaxon \ Config \ Exception \ File ( $ sErrorMsg ) ; } return $ aConfigOptions ; }
Read options from a config file

@param string        $sConfigFile        The full path to the config file

@return array
Read options from a config file