Jet\Factory_Db

Factory designed for direct work with the database.

Method Overview

Method Meaning of
public static getDefaultBackendClassname(
): string
Returns the class name of the default backend for working with the database.

The default value is Jet\Db_Backend_PDO
public static setDefaultBackendClassname(
string $default_backend_class_name
)
Sets the class name of the default backend for working with the database.
public static getDefaultBackendConfigClassname(
): string
Sets the class name of the configuration default backend for working with the database
public static setDefaultBackendConfigClassname(
string $default_backend_config_class_name
): void
Returns the class name of the configuration of the default backend for working with the database

Default value is Jet\Db_Backend_PDO_Config
public static getBackendConfigInstance(
array $config_data = []
): Db_Backend_Config
Returns an instance of the configuration of backend definition.
public static getBackendInstance(
Db_Backend_Config $connection_config
): Db_Backend_Interface
Returns a prepared instance of backend.
Previous chapter
Jet\Factory_DataModel
Next chapter
Jet\Factory_Form