class DatabaseAdapterRegistry (View source)

This class keeps track of the available database adapters and provides a meaning of registering community built adapters in to the installer process.

Properties

Methods

public static 
register(array $config)

Add new adapter to the registry

public static 
unregister(string $class)

Unregisters a database connector by classname

public static 
autodiscover()

Detects all _register_database.php files and invokes them

public static 
autoconfigure()

Detects all _configure_database.php files and invokes them Called by ConfigureFromEnv.php

public static 
array
get_adapters()

Return all registered adapters

public static 
array
get_adapter(string $class)

Returns registry data for a class

public static 
array
get_default_fields()

Retrieves default field configuration

Details

static register(array $config)

Add new adapter to the registry

Parameters

array $config

Associative array of configuration details

static unregister(string $class)

Unregisters a database connector by classname

Parameters

string $class

static autodiscover()

Detects all _register_database.php files and invokes them

static autoconfigure()

Detects all _configure_database.php files and invokes them Called by ConfigureFromEnv.php

static array get_adapters()

Return all registered adapters

Return Value

array

static array get_adapter(string $class)

Returns registry data for a class

Parameters

string $class

Return Value

array

List of adapter properties

static array get_default_fields()

Retrieves default field configuration

Return Value

array