Jelix\Installer\AbstractInstaller::useDbProfile PHP Метод

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

use the given database profile. check if this is an alias and use the real db profiel if this is the case.
protected useDbProfile ( string $dbProfile )
$dbProfile string the profile name
    protected function useDbProfile($dbProfile)
    {
        if ($dbProfile == '') {
            $dbProfile = 'default';
        }
        $this->dbProfile = $dbProfile;
        // we check if it is an alias
        if (file_exists(App::configPath('profiles.ini.php'))) {
            $dbprofiles = parse_ini_file(App::configPath('profiles.ini.php'));
            if (isset($dbprofiles['jdb'][$dbProfile])) {
                $this->dbProfile = $dbprofiles['jdb'][$dbProfile];
            }
        }
        $this->_dbConn = null;
        // we force to retrieve a db connection
    }