ElggInstaller::connectToDatabase PHP Method

connectToDatabase() protected method

Bootstrap database connection before entire engine is available
protected connectToDatabase ( ) : boolean
return boolean
    protected function connectToDatabase()
    {
        if (!(include_once $this->getSettingsPath())) {
            register_error('Elgg could not load the settings file. It does not exist or there is a file permissions issue.');
            return FALSE;
        }
        if (!(include_once \Elgg\Application::elggDir()->getPath("engine/lib/database.php"))) {
            register_error('Could not load database.php');
            return FALSE;
        }
        try {
            _elgg_services()->db->setupConnections();
        } catch (DatabaseException $e) {
            register_error($e->getMessage());
            return FALSE;
        }
        return TRUE;
    }