Returns a connection to a Moodle database or the cached version if available.e

mdl_get_connection(use_cache = TRUE, config = "default")

Arguments

use_cache

If TRUE (the default) connection to the local cache is returned.

config

Select configuration from config file

Value

a DBI connection object